Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Done
-
1.6.2
-
None
-
None
-
Tomcat7
Description
Less Than Symbol [<] got replace to < in response string in the response xml
StringWriter writer = new StringWriter();
StreamResult result=new StreamResult(writer);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.METHOD, "xml");
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
DOMSource source = new DOMSource(doc);
// StringWriter writer = new StringWriter();
transformer.transform(source, result);
String output = writer.toString();