It turns out they were. But when I went from XMLNodeToDocument it would get rid of the escape characters. Then I would do my updates and convert it back without setting the encode to true in the documentToXMLString service. Thanks for the help. Here is the flow people should be using if they want to catch a document routed from TN.
How to send a doc to TN: Input of service is node.
xmlNodeToDocument
MAP steps…
documentToXMLString (set encode to true)
XMLStringToXMLNode
wm.tn.doc.xml:routeXml
How to catch doc from TN and WriteToFile :Input of service is node.
xmlNodeToDocument
MAP steps…
documentToXMLString (set encode to true)
writeToFile (custom util accepting string)
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services