I am trying to develop an XML export feature to give my application users to export their data in an XML format. I have got this feature ready and working until it started f
Use the below code to escapes the characters in a String using XML.StringEscapeUtils is available in apche commons lang3 jar
StringEscapeUtils.escapeXml11("String to be escaped");