Hi,
If you want to convert a Document (whatever its contents) to an XML file, you can play with the services pub.xml:documentToXMLString and pub.file:stringToFile (or the equivalent stream or reader services), taking care with the BufferSize parameters.
If you want more control over the whole conversion, you can descent in to the corresponding Java services, but beware that navigating the IData structures is a daunting task…
Good luck.
#webMethods#Integration-Server-and-ESB