I pull xml data from a constantly updated stream, but unfortunately from time to time, the data structure is screwed up by a bad entry. Unfortunately when this happens, my scripts dies, and well...so does the rest of the page following. The pertinent part is here (I assume):
xml_parse($xml_parser, $data, feof($fp))
<TR><TD></TD><TD></TD><TD></TD></TR></TABLE>");
or exit(sprintf("<TR><TD colspan=3>Bad Server Data.<br>Exiting.</TD></TR></TABLE>",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
From what is there, obviously it prints the error "Bad Server Data. Exiting". Because my pages are php generated as well, this puts a halt to all the rest of the php for the page and is a general nuisance. I would prefer to code something in to make the error handling better (stop trying to process that script and move on to the next section). THanks for any assistance y'all may have.