I did some work and try to avoid using the RDBMS part. So here is my question again
If I have 100 XML files with structure as :
<bookstore>
<book>
<title>Learn XML</title>
<author>ABC</author>
</book>
<book>
<title>Learn Java</title>
<author>PQR</author>
</book>
-------
------- { more such book elements}
</bookstore>
So if I want to directly write query like " All books authored by "ABC" sorted by name of book" on the collection of 100 XML files. Is there anyway of doing this with Xquery/Xpath. Can someone provide me steps and a query for doing that.
Also one more question as BaseX is a database for XML but I am not actually able to figure out its real advantages over databases available. Is its interface or functionality or anything else which is better than other databases.
Thank you in advance and hope to hear from you soon.
--
Ankur