Hello,
What is the way to store an XMLnode (comming from a FilePolling port) into an XML file ?
I’ve tested PSUtilities:objectToFile but I got
com.wm.app.b2b.server.ServiceException: Exception occurred while writing object to file: java.io.NotSerializableException: com.wm.app.b2b.services.CValues
Any idea ?
Thanks & regards,
Laurent
Oups, the exact message for an XML node is :
com.wm.app.b2b.server.ServiceException: Exception occurred while writing object to file: java.io.NotSerializableException: com.wm.lang.xml.Document
Bye
Laurent
Ok, I found a way,
1/ converting my XMLnode to a document,
2/ converting this document to a XMLstring
3/ writing it.
There is a better way ?
Laurent
I would convert the Node to a String using pub.xml:queryXMLNode WQL query “doc.src” to get the source back. This will give you the exact source as a String. I think it will read the bytes directly from the XML parser stream, so it won’t force parsing.