Assuming you have created an Accessor like this:
TXMLObjectAccessor myAccessor = myConnection.newXMLObjectAccessor(TAccessLocation.newInstance( DB_COLLECTION ) ,
TJDOMObjectModel.getInstance() );
the API TResponse will contain JDOM instances, so you just need code like this to step through the root "org.jdom.Element"s:
if (response.getReturnValue().equals("0")) {
TXMLObjectIterator it = response.getXMLObjectIterator();
while (it.hasNext()) {
TXMLObject myObject = it.next();
System.out.println("Getting Root Element");
Element myRootElement = (Element) myObject.getElement();
System.out.println(myRootElement);
}
}
#webMethods#Tamino#API-Management