Please enable JavaScript to view this site.

Altova XMLSpy 2020 Enterprise Edition

The XPath/XQuery Window (screenshot below) enables you to build, evaluate, and debug XPath and XQuery expressions with respect to XML or JSON documents. (Features that enable JSON queries were introduced in XPath/XQuery 3.1.)

XPathXQueryWindowVertical

This section provides a brief overview of the main features of XPath/XQuery Window. For a detailed description of how to work with XPath/XQuery Window, see the section XPath/XQuery Expressions.

 

Main features

The XPath/XQuery Window provides the following main features:

 

Evaluation Mode: In Evaluation Mode, an XPath or XQuery expression is evaluated with respect to one or more XML/JSON documents. The expression is entered in the Expression pane, and the result is displayed in the adjoining Results pane. You can click nodes in the result to go to that node in the XML or JSON document.

Debug Mode: In Debug Mode, you can debug an XPath/XQuery expression as it applies to the currently active XML document. You can set breakpoints and tracepoints, and go step-by-step through the evaluation. At each step you can see the content of variables, as well as set custom Watch expressions to check additional aspects of the evaluation.

Expression Builder: An Expression Builder provides entry helpers and information popups to help you construct syntactically correct expressions.

Support for multiple languages: You can switch language versions from XPath 1.0 to XPath 3.1 and XQuery 3.1

Flexible scope for target documents: The expression can be tested on the currently active XML or JSON document, or on a user-defined set of documents.

Auto-detection of file type: The filetype of the current document (XML or JSON) is automatically detected and the correct target-document mode is automatically set. If the scope is a set of documents, you can manually select the target document type.

Results link directly to documents and document nodes: Lines in the Results pane contain links to the relevant documents or document nodes. This enables you to go directly to specific nodes and check data there.

Debugger analytics: In Debug Mode, a wide range of analytical information is displayed. Additionally, you can set custom expressions to check additional aspects of the evaluation.

 

For a detailed description of the XPath/XQuery Window features, see the section XPath/XQuery Expressions.

 

© 2020 Altova GmbH