In the next step, you could add the documents to the newly created databases:
for $doc in db:open('Analysedocumentaire') let $name := $doc/*/name() return db:add($name, $doc)
Since there doesn't seem to be any way around this, is there a way to find more info on the error:
Stopped at line 1, column 65: [FODC0007] Resource path '' is invalid.
Other possibilities I've tried:
Putting db:add in try-catch, doing a counter and an if with db:add inside of the if so that I could see if I could make it work for some files, unfortunately I guess neither of those scenarios is allowed - anyway to do something like that? Is there a way to do a query and export results to a filepath, and then import that filepath into my specific db.
Also when I look at the dbs I created they look like the following:
Database Properties Name: AFGDOK Size: 4540 Bytes Nodes: 1 Documents: 1 Binaries: 0 Timestamp: 25.10.2012 15:40:19
Resource Properties Timestamp: 25.10.2012 15:40:19 Encoding: UTF-8 Whitespace Chopping: ON
Indexes Up-to-date: true Text Index: ON Attribute Index: ON Full-Text Index: OFF
I never actually put a document in there, but it says it has a document, is that normal? I figured probably like there is some sort of hidden metadata document in every db?
Thanks, Bryan Rasmussen