I retrieve a XML document from Tamino for modifying. After users submit their modification, I need to update the original XML.
However, I couldn’t tell which fields are modified by users, so I want to replace the whole original document with the new content submitted by users.
It seems that using TXMLObjectAccessor.update(TXMLObject) doesn’t work due to the unaccessibility of ino:id. Therefore, I should write a query to do this. Could you tell me how to replace a whole XML document by using x-query? (I don’t want to change the header of the original document)
Or do you have any suggestion to do this in a better way?
Thank you a lot