This greatly depends on what object model you are using. Each object model has methods for creating a new xml object. For example if you are using JDOM you can simply construct a org.jdom.Document. Then you can use specific object model methods for building up the xml structure. Another method is to build a String. Again object models will have methods for parsing a string representation of the XML document to produce a DOM.
If you are using the TaminoAPI4J, it is possible to construct a TXMLObject in a variety of ways, either passing a string, or an object model specific document or element object.
Hope this helps.
Stuart Fyffe-Collins
Software AG (UK) Ltd.
#webMethods#webMethods-Tamino-XML-Server-APIs#API-Management