Any help with this would be greatly appreciated. But one very important thing is that I am not going to change my parser.
I think this will be a sticking point. I'm not an XML expert, but if your parser isn't handling completely-valid, spelled-out-in-the-XML-spec "&"...
(http://www.w3.org/TR/2008/REC-xml-20081126/#dt-chardata)...your parser is broken. Maybe you have good reasons for having no choice but to use a broken one. Using one that isn't broken is the obvious solution otherwise.
Can you do some very naive transformation of the XML you do get to convert the XML to something your parser can understand? Like s/&/\<amp\/\>/g or whatever?
Also, I question whether your parser is broken? Are you sure you're not doing anything to the XML, intentionally or not, before handing it to XMLReader? I can't imagine handling & would be broken.
Edit: I just ran the test validation script at:
(http://ca.php.net/manual/en/xmlreader.isvalid.php#xmlread...)... against the XML I dumped above in
(49968.316), and it comes back as valid in PHP 5.2.6.
Finally, I'm guessing from your username that you're also testing a problem with ampersands or other entitified characters in login names, and my understanding from Domenico is that this known issue (see
(77432.6) and onward) won't be fixed any time soon.
Last edited by Mod-oeuftete at 4/30/2009 11:29:20 AM