java - SAXParser - Escaping Special Characters -
i parsing below string using saxparser
<xml> <firsttag>&<</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
Post a Comment