I have a requirement where in I have to insert documents with name 1 to 6 with extension .xml, set the collection as "flags" to each of the documents in one go, and insert them into a directory called America.
How can I achieve this using xdmp:document-insert?