Hi!
So, here we go:
I would like to retrieve an arbitrary document from a known collection and a known doctype.
When I send the following XQuery to the database:
String querystring = “let $a:=input()/doctypename return count($a)”;
I received 250242. So I guess that means there are 250242 documents of that specific doctype.
Afterwards, I changed the XQuery expression to:
String querystring = “let $a:=input()/doctypename return $a”;
I didn’t get any result, it just didn’t terminate.
So I figured it is because of the size, so I didn’t use the usual
accessor.xquery(query);
method but
accessor.xquery(query, 1);
Anyways, it was the same - no termination.
I thought that second method would just give me one result document?
How else could I do that?
Thanks for helping out!
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs