Hi all,
I have a large database of about a dozen separate xml files. When I use the GUI interface, I can see them all in the graphical display, and as I pass the cursor over elements, it displays
doc("om.xml")/...
But when I try that in a query (the database is open), I'm told:
FODC0002 File or directory C:/servers/basex/om.xml not found
The basex installation is at C:/servers/basex and the currently opened database ("fasdb"), which was loaded from file 'om.xml' and others on a different machine, and downloaded, lives here:
C:/servers/basex/BaseXData/fasdb
How can I refer just to one document from that db in a query e.g.
let $persons := doc("om.xml")//person
Forgive me if this is a basic error on my part, I am still learning. I have tried variations on the basex:db construct, but all give a file not found error. If I move the document to where it is looking, basex builds a new db, not what I want at all!
I'm sure there is a simple solution but I cannot see it. Any clues much appreciated.
Cheers all,
Sandra