How will you retrieve a list of XML documents from the Tamino database without using the TXMLObjectIterator of which you must use the while statement, but using something that you can apply a for loop.
Eg.
response = processQuery("for $e in input()/Employee return $e");
if (!response.hasFirstXMLObject())
throw new Exception("Nothing found");
xmlObject = response.getFirstXMLObject();
TXMLObjectIterator empIt = response.getXMLObjectIterator();
while (empIt.hasNext()) {
Please advise.
Best Regards