How to get document name from Berkeley DBXml

Is there any command or JAVA API option to get name list of documents available in the container.

There is an XQuery command you can run:

for $x in collection("users.dbxml") return dbxml:metadata('dbxml:name', $x)