Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
#Automation
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
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 ?
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.