One way to do it is: set up a CURSOR with quantity let’s say 100 with the following query:
…tamino/mydb/mycoll?_cursor=open&_xql=/mydoctype/@ino:id
Then you can FETCH the cursor and loop over the ino:id’s and do a HTTP GET for each id(eg http://myhost/tamino/mydb/mycoll/@10 ).
With this you get back the plain XML documents one by one and can manipulate them (e.g. strip prolog, add ino:id and (perhaps) a wrapper). Repeat until finished. Thats the way its done in inoxmld.
Using CURSORs is a convenient way for tasks like yours.
All the best,
Hermann Gundel
#webMethods#Tamino#API-Management