I’ve made some progress but now have a different problem.
I get a TResponse object from a query and get an TXMLObject by doing a getFirstXMLObject().
Then I get a JDOM element by doing the getElement() method and casting it.
Now I want to append this JDOM element (using the addContent method) to a element of a different, newly created JDOM document.
I get an error
org.jdom.IllegalAddException: The element "Organisation" could not be added as a child of "Submission": The element already has an existing parent "xql:result"
.
How can I get a JDOM element from a Tamino query result without it having the parent xql:result? Is this possible?
Thanks
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods