Is it possible to do queries on a XML file using Castor?
No, Castor does not provide an OQL query facility on a XML file. If querying is important for you, you should consider using a DBMS to store your data instead of using XML files, especially if querying performance is a concern. Another alternative is parse an XML Document directly and use XPath to retrieve Nodes and/or NodeSets from an XML Document.