The XPath Builder View

The XPath Builder view allows you to compose complex XPath expressions with the help of the XPath content completion assistant and color syntax highlight. The view is opened from Window > Show View > XPath Builder menu action.

The XPath Builder View

The Execute button runs the expression against the edited document and takes into account the value selected for 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 XML Author keeps a history of the XPath expressions executed in the current session.

The XPath update on caret move button enables the XPath Builder view to display the XPath expression at the current cursor position when navigating 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, these preferences are used when evaluating the XPath 2.0 collection(URIofCollection) function.

The results of the XPath query are displayed in the same results view 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 editable part of the view. The popup menu of the history list area of the viewcontains three actions: