Sateesh, sorry I totally overlooked your last email. I'll reply inline: Am 18.08.2012 um 08:58 schrieb "sateesh" <sateesh@intense.in>:
Hi Micheal,
I have tried to implemet your suggested changes , but I got struck as the 10k xml's which I have to query on comes from different folders,and also one more question is how do I create collections using the program before running the query.
XQuery at the moment has no possibility to create a collection on the fly, as such you would have to use our Java API [1] or Commandline API [2]. For creating a collection from different folders you would do as follows: create db myDB "path/to/files";
• creates the database coll with all documents found in the input directory.
ADD TO target/ xmldir
• adds all files from the xmldir directory to the database in the target path.
I hope this helps :-) Kind Regards Michael
Thanks & Regards Sateesh.A
[1] https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/base... [2] http://docs.basex.org/wiki/Commands