Skip to content Skip to sidebar Skip to footer

Parsing Xml With Single Quotes?

I am currently running into a problem where an element is coming back from my xml file with a single quote in it. This is causing xml_parse to break it up into multiple chunks, exa

Solution 1:

I think having magic quotes enabled can mess up xml parsing sometimes - is this enabled?. You can disable this at runtime using

set_magic_quotes_runtime(0);

Edit: this may not be relevant if the source is not post or get, but I read in the PHP manual that it could cause odd behaviour anyway

Post a Comment for "Parsing Xml With Single Quotes?"