code_junkie

XML Parsing Error: SYSTEM or PUBLIC, the URI is missing [closed]

Nov 11th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // $xml_text is filled with the contents read from the URL
  2. $xml_parser = xml_parser_create();
  3. $res = xml_parse($xml_parser, $xml_text);
  4.  
  5. if (!$res) {
  6. $error =
  7. xml_error_string(xml_get_error_code($xml_parser)).
  8. " at line ".
  9. xml_get_current_line_number($xml_parser);
  10. }
  11.  
  12. // $error contains: "SYSTEM or PUBLIC, the URI is missing at line 1"
Add Comment
Please, Sign In to add comment