Hello Jay,

Tuesday, November 16, 2004, 2:13:28 PM, you wrote:

JB> And when the pareser hits the first line of the XML file ...
JB> <?xml version="1.0" encoding="ISO-8859-1"?>
JB> ... it throws an error from xml_get_error_code
JB> "syntax error"

Hard to tell without seeing the XML source, but could it be a case of
whitespace and/or case-folding? (both of which caught me out on my
first XML project) - I had to use the following:

xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($this->parser, XML_OPTION_SKIP_WHITE, 1);

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to