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?To: NULL Date: 12/4/2008 7:51:00 AM On Dec 3, 10:18=A0am, sheldonlg <sheldonlg> wrote: > 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 thePHPand 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 thathttp://us.php.netis your friend. > > Correction: =A0php.net is your bible! =A0:-) =A0(....at least that is how= I > referred to it when I recently taught my daughter how to program inPHP). Uh oh, you've given me a dangerous idea.... how old's your daughter? Mine's 9 and is already playing with making Power Point presentations and Excel spreadsheets. (Although, as I think of it, if I'm going to teach any language to the uninitiated, I'm thinking Python....) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
