Hello,
I have an XML string as Input to a service.
The XML contains a string which has ‘&’ [ampersand] in it.
Example: Engineering & Management Services
I am converting this XML String to Node (using pub.xml:xmlStringToXMLNode) and then to Document ( using pub.xml:xmlNodeToDocument).
While converting to Document, I am getting the below error:
com.wm.app.b2b.server.ServiceException: [ISC.0042.9332] Malformed entity reference: & Management Services
…
…
…
I have tried using encoding = UTF-8 and UTF-16 but got the same results.
For debugging purpose, when I change the “&” to “&” in the source XML string then it works perfectly, but as a solution this cannot be taken, as no change in source XML is allowed.
Any suggestion for this solution is really appreciated.
Thanks
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services