Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Using PHP to parse specific XML tag content? >Thread Next - Re: Using PHP to parse specific XML tag content? Re: Using PHP to parse specific XML tag content?To: NULL Date: 12/3/2008 11:19:00 AM Ron Fox wrote: > Mechphisto wrote: > >> Oh holy sheesh! >> I saw somewhere something about the parser converting tags to >> uppercase, so I changed all the tags to uppercase in the PHP and in >> the XML file, and bammo! It all works fine now. >> Crazy, annoying... grrr. >> > uh... that sounds so broken.. xml is case sensitive... is it possible > the parser has a flag to run in html mode (where tags are not case > sensitive), and that flag needs to be turned off to truly parse xml? > > Ah yes: > > see the xml_parser_set_option man page: > http://us.php.net/manual/en/function.xml-parser-set-option.php > > Specifically the XML_OPTION_CASE_FOLDING > > and remember that http://us.php.net is your friend. Correction: php.net is your bible! :-) (....at least that is how I referred to it when I recently taught my daughter how to program in PHP). | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
