New Document Everytime.

I have an XML document in my Tamino database that I need to update it’s id and populate it with data from different other xml documents in Tamino and save it as a new document everytime I run the program. Please advise on how to go about this problem.

If you have the XML document within an instance of TXMLObject, you may manipulate the id using the getId() and setId() methods. However, how you change the content of the document depends on the object model you use, DOM or JDOM. You should look into the documentation of those object models for finding the right methods to do so.