You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "thomas (JIRA)" <ji...@apache.org> on 2015/05/12 12:02:59 UTC
[jira] [Resolved] (AXIS2-5698) Less Than Symbol [<] got replace to
< in response string
[ https://issues.apache.org/jira/browse/AXIS2-5698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
thomas resolved AXIS2-5698.
---------------------------
Resolution: Done
Fix Version/s: 1.6.2
changed the return type to OAElement
String output = writer.toString();
return AXIOMUtil.stringToOM(output);
> Less Than Symbol [<] got replace to < in response string
> -----------------------------------------------------------
>
> Key: AXIS2-5698
> URL: https://issues.apache.org/jira/browse/AXIS2-5698
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.6.2
> Environment: Tomcat7
> Reporter: thomas
> Priority: Blocker
> Fix For: 1.6.2
>
>
> 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();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org