0

I am using BaseX version 9.5 and trying to ingest docs into database and read it in the same run:

let $result := for $i in 1 to 10
                  return 
                  (
                    db:replace('test','/content/'||$i||'.xml',<test id="{$i}"></test>)
                  )
return
for  $uris in  fn:uri-collection('test')
return $uris                      

Currently document getting ingested into system but I am not getting the URIs of the document, Please suggest how can I achieve this

Thanks

0 Answers0