Maybe there is a misunderstanding here. In your code, the line
TResponse response = accessor.query( query );
is a Tamino API call. If “query” contains a document type (like “person”) then a set of complete person xml documents will be returned.
Your code then gets the root DOM element of each complete document, and extracts individual nodes using the “getDOMElementTextByTagName()” method. This is not a Tamino API call, it is a DOM method to extract a specific node value from an Element. So your program already has the complete XML document in the variable “xmlObject”. To see its contents, you could use the TXMLObject’s “writeTo(OuptutStream)” or “writeTo(Writer)” methods. If you still have problems, you could contact your local Software AG office, which will be able to provide you with further advice and any training that might help you.
Best regards.
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management