java - SAXParser - Escaping Special Characters -


i parsing below string using saxparser

<xml> <firsttag>&amp;&lt;</firsttag> <secondtag>test</secondtag> </xml>

i want same string retained getting converted below

<xml> <firsttag>&<</firsttag> <secondtag>test</secondtag> <xml>

here code. how can avoid being converted?

saxparserfactory factory = saxparserfactory.newinstance();         saxparser saxparser = factory.newsaxparser();         myhandler handler = new myhandler();           values = handler.getvalues();         saxparser.parse(x, handler);   


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -