Avoiding special characters in the XML output using JAXB



I am reading tweets and forming an XML out of it, for which I am using JAXB Marshaller and UTF-8 encoding. My problem is, the generated XML contains special characters like:



> x85, x93, xAQ


I found that these are UTF-8 encoded characters, but it makes my XML invalid.


Is there a way to avoid these characters in the generated XML.


No comments:

Post a Comment