for $doc in db:open('DK') let $name := $doc/*/name() return db:add($name, $doc)
where DK is the name of my db.
Maybe one of the returned name strings is empty. Could you send me the result of the following query?
for $name in db:open('DK')/*/name() return element name { $name }