The XPath Builder view allows you can compose complex XPath expressions with the help of the XPath content completion assistant and color syntax highlight support. The view is opened from menu action.
The Execute button runs the expression against the edited document and
takes into account the value selected in the combo box with the XPath version number: 1.0 or
2.0. Both XPath 2.0 basic and XPath 2.0 schema aware expressions can be evaluated. The XPath preferences panel is accessible from the
XPath Options
shortcut button near the Execute button. Oxygen keeps a history list of the
XPath expressions executed in the current session, so you can reuse them to compose new
ones.
The
XPath update on caret move button
enables the XPath Builder view to display the XPath expression at the
current cursor position when navigating in the document.
The evaluation of the XPath expression tries to resolve the locations of documents referred in the expression through the XML catalogs which are configured in Preferences pages and the current XInclude preferences. For example, the preferences are used when evaluating the collection(URIofCollection) function (XPath 2.0).
The results of the XPath query are displayed in the same message panel as for the XPath console and are computed with the same character level precision.
The usual edit actions Cut, Copy, Paste, Select All, Undo, Redo are available in the popup menu of the top part of the view, where XPath expressions are edit. For the history list area of the view the popup menu contains two actions: