Hi Mansi,
Out of interest: why don't you simply store all documents in the
database and use the document path as ID?
as BaseX is a native XML store, there is no way to store data in
structures like tables. However, due to the flexibility of XML
structures, the usual way is to create another document or database
that contains ID and additional meta data.
Best,
Christian