XPath Support

The XPath expressions can be quickly edited and executed using the XPath toolbar. The content completion support shows documentation for all the XPath 1.0, 2.0 and 3.0 functions. The function signature tooltip presented above the current function indicates the names and types of the edited arguments.

XPath toolbar

XPath Builder View

This view allows editing of multi-line, complex expressions, assisting you with features such as the Content Completion Assistant, syntax highlight, automatic validation and documentation of the currently edited item. The executed expressions are stored in a history list and they can be re-used as necessary.

XPath Builder View

XPath Scope

XPath expressions can be executed over multiple files. You can choose one of the predefined scopes (current file, entire project, a selection from the project, all open files, DITA Map hierarchy) or define your own collection of files (a so-called working set). Scope selection is available both in the XPath/XQuery Builder view and in the XPath toolbar.

You can choose to execute XPath expressions over all XML files from the selected scope but you can also define patterns to filter out certain files.

Presentation of the XPath Results

The results of an XPath query are shown as a list in the results panel. You can save the results to a file by clicking the Save Results option from the right-click menu or even print the XPath results. Clicking on a result line will highlight the corresponding part from the document.

XPath

Results are returned in a format that itself is a valid XPath expression: - [FileName.xml] /node[value]/node[value]/node[value] -

If your project is comprised of a main file with ENTITY references to other files, you can use XPath to return all the elements matching a certain criteria by querying the main file. The result list will include results from all referenced files, providing a simple way of access to the nodes of the document.

XPath Execution in the Context of the Current Element

The XPath expressions are evaluated from the current element so relative expressions can be evaluated in different contexts.

Video Tutorials
Upcoming Events
DITA-OT Day 2014
DITA-OT Day 2014
November 20, 2014
Munich, Germany
" oXygen XML Editor is the premier text editor for XML geeks, and an indispensable tool for O'Reilly's Production group. My team uses oXygen XML Editor for everything from simple XML editing to Schema validation and XSLT transformations. The digital production staff especially loves oXygen's built-in EPUB support, which eliminates a great deal of the grunt work that is usually entailed in editing EPUB files. The more we use oXygen, the more realize what a powerful tool it can be in digital and XML-based workflows."
Adam Witwer
Director of Content and Publishing Operations
O'Reilly Media