I am working with these same tools. When building the XML file, we replace the 5 dangerous characters (&,',",<,>) with the HTML equivalents. Then on the recieving end, I wrote a function to re-replace the HTML chars with the regular text chars. (The XML reader in the program I am working on isn't able to do the replacvment on it's own, and I don't have time to look for another reader right now, so I wrote the code.)
Long story short, whoever is receiving the XML file has no choice but to either use an XML parser which is capable of replacing these five HTML characters on it's own, or to write a function to do it.
Also, keep in mind 2 things:
1. Even if you build the XML file without the HTML characters, no XML reader will be able to read it, since those characters make it unreadable. Why? Becuase they are used in the structure of the XML document. Those characters will cancel out the ones that are supposed to be there. How is the XML reader supposed to know which of the > are the structural ones?
2. If the XML file is viewed in a Web browser, the regular text characters will be displayed, and it will look normal.
Good luck!
Greg Norris
Software Developer & all around swell guy
__________________________________________________
Constructed from 100% recycled electrons.