I'm sending an XML document via PHP for handling with XMLHttpRequest.
In the stage of various testing, I ran into a problem when trying to pass a bunch of gibberish. The characters in the <description> nodeValue are apparently not valid for an XML document.
How do I go about encoding this correctly? What functions in PHP?
Here is my error:
http://www.xavn.com/tmp/xml_error.gif
(may take a moment to load)
It may be unrelated, but over here the following is said:
If such characters can't be encoded, is there a specification to know what characters they are, so I can regex strip 'em?Originally Posted by PHP.net
Thanks in advance.
Cheers.






Bookmarks