Hi Michel and thanks for the information. Your document is in a custom namespace, so the correct form of your XQuery request is:
declare namespace pre="http://www.nibra.nl/bzk"
for $p in input()/pre:chunk
where
$p/pre:meta/pre:identification/pre:id="0000"
return $p
Your original query worked because it simply asked for everything in collection “chunks”. As soon as you ask specifically for a doctype, your request has to be namespace-correct.
HTH
#API-Management#webMethods#Tamino