Is there a transform or type converter that will convert escaped xml to standard xml I get this from a legacy axis 1.4 system <inv:invokeCI> <!--Optional:--> <opCode>R</opCode> <!--Optional:--> <serviceFunction>SelectClientPerpetratorInfo</serviceFunction> <!--Optional:--> <ciRequestXML> <ParameterBeans> <ParameterBean> <parameterName>personNo</parameterName> <dataType>String</dataType> <scale>0</scale> <value>WL8AA7Q</value> </ParameterBean> </ParameterBeans> </ciRequestXML> <!--Optional:--> <idWRKRPersn>13887</idWRKRPersn> </inv:invokeCI>
I need to convert the ciRequestXML from <ParameterBeans> <ParameterBean> <parameterName>personNo</parameterName> <dataType>String</dataType> <scale>0</scale> <value>WL8AA7Q</value> </ParameterBean> </ParameterBeans> to <ParameterBeans> <ParameterBean> <parameterName>personNo</parameterName> <dataType>String</dataType> <scale>0</scale> <value>WL8AA7Q</value> </ParameterBean> </ParameterBeans> So that I can parse the xml (am using Jackson) into a POJO Without doing this .process(new Processor() { @SuppressWarnings("unchecked") public void process(Exchange exchange) throws Exception { //log.info(exchange.getIn().getHeader("RequestBeginDate").getClass().getName()); List<Object> params = (List<Object>) exchange.getIn().getBody(); String inboundRequest = ((String)params.get(2)).trim() .replaceAll("&lt;","<") // fix anything that has been escaped .replaceAll("&gt;",">") .replaceAll("<","<") // fix anything that has been escaped .replaceAll(">",">") ; log.info("Inbound Request: " + inboundRequest); exchange.getMessage().setBody(inboundRequest); }}) Regards- Marci Wilken She/Her/Hers Operations Architect Office of Information Services OHA/DHS/CAF-CW/OR-KIDS Desk: 503.378.2405 Cell: 503.979.9680 CONFIDENTIALITY NOTICE This email may contain information that is privileged, confidential, or otherwise exempt from disclosure under applicable law. If you are not the addressee or it appears from the context or otherwise that you have received this email in error, please advise me immediately by reply email, keep the contents confidential, and immediately delete the message and any attachments from your system.