Re: XML + PHP is going to eat my shorts

From: Date: Tue, 16 Nov 2004 14:35:16 +0000
Subject: Re: XML + PHP is going to eat my shorts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202155@lists.php.net to get a copy of this message
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

« previous php.general (#202155) next »