I have buldloaded a collection of 10.000 XML files into MonetDB like this:

for $d in doc("/monetdbfiles.xml")//doc
return
pf:add-doc(fn:concat($d/@path,$d/@name), fn:string($d/@name), "abap10k", 0)
<>
Now the XML files have missing element names and look like this in MonetDB:
<AST>
< type="compound" line="1" id="1">
< type="stmt" line="1" id="2"/>
< type="stmt" line="5" id="3">
< type="clause" line="5" id="4">
< type="idf" line="5" id="5"/>
</>

What could be wrong?
Thanks for your help.