Download and install Oxygen XML Developer with a 30-day evaluation license.
To run an XPath, you can use XPath toolbar:
https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/xpath-toolbar.html
For current XML document open, type in an XPath expression, and press Enter to run.
To run an XQuery, please refer to XQuery Transformation.
Create a new project, and create an XML file bib.xml under the project. Create a new XQuery file query.xquery under the project.
Method 1: Execute a query in debug mode. Under the menu, XML: select bib.xml; XQuery: query.xquery; Click -> key to execute. The output will be displayed on the right.
Method 2: Create a transformation. Document -> Transformations -> Configure Transformation Scenarios -> New -> XML Transformation with XQuery. Add a name test for the transformation, select XML URL as bib.xml, XQuery URL as query.xquery. Save and Close.
To run the query, Document -> Transformations -> Apply Transformation Scenarios (CTRL + Shift +T), select test, and run it (Apply associated).