Dear Robby Pelssers,
of course BaseX supports the concept of collections. You can add all three documents to one collection. Start with creating an empty collection: create coll states and then continue with adding the documents: add workflow.xml add workInProgress.xml add released.xml
or do it all in one by calling: basex -c "create coll states; add workflow.xml; add workInProgress.xml; add released.xml". Now you can use XQuery for getting your results.
I hope this helps, dont hesitate to ask for more.
Kind regards, Andreas (BaseX Team)
Robby Pelssers schrieb:
Hi all,
I was wondering if BaseX also supports the concept of having collections in the database.
The reason why I need collections is that I have xml files with the same identifier. My customer exports product information for different states (workflow | work in progress | released) to the file system currently but we would like to export everything to an xml database.
So I'd like to create 3 separate collections for the 3 states and being able to query for product 'X' in state 'Y'. Is this possible?
Robby Pelssers
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk