My webservice response contains illegal xml characters like '&', '#'. I like to know if anyone knows of any Java class I can call to replace these characters with valid xml characters, pls. let me know.
posted 10 years ago
I don't think # is an invalid XML character.
The main ones you need to translate are <, > and & in text, and " and ' in attributes.