Hi Markus,
it looks like the “getQueryContentAsString()” method is not doing what you and I would expect here. You should open a request with your local Customer Support Center about this.
In the meantime, you could use the “writeTo” method of the TXMLObject class to output the desired result:
if (!iterator.hasNext()) {
System.out.println( "no data!" );
} else {
while (iterator.hasNext()) {
TXMLObject xmlObject = iterator.next();
// TFO added these two lines ////////////
System.out.println("\n\nresult: "); //
xmlObject.writeTo(System.out); //
/////////////////////////////////////////
System.out.print( "\n\n count: " + iterator.getCount() );
}
}
Cheers,
Trevor.
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management