The XPath/XQuery Builder view allows you to compose complex XPath and XQuery expressions and execute them over the currently edited XML document. For XPath 2.0 / 3.0, or XQuery expressions, you are able to use the doc() function to specify the source file over which the expressions are executed. When you connect to a database, the expressions are executed over that database. If you are using the XPath/XQuery Builder view and the current file is an XSLT document, Oxygen XML Editor executes the expressions over the XML document in the associated scenario.
To open the XPath/XQuery Builder view, go to .
Execute XPath button -
press this button to start the execution of the XPath or XQuery expression you are
editing. The result of the execution is displayed in the Results
view in a separate tab
History drop-down box -
keeps a list of the last 15 executed XPath or XQuery expressions. Use the
Clear
history action from the bottom of the list to remove them
Settings drop-down menu -
contains three options:
Update on caret move - when enabled and you
navigate through a document, the XPath expression corresponding to the XML node at the
current cursor position is displayed
Evaluate as you type - when you select this option, the XPath
expression you are composing is evaluated in real time
Evaluate as you type option and
the automatic validation are disabled when you
edit huge
documents or when the scope is other than Current
file
Options - opens the Preferences page of the
currently selected processing engineFigure: The XPath/XQuery Builder View
Content Completion Assistant - It offers context-dependent proposals and takes into account the cursor position in the document you are editing. The set of functions proposed by the Content Completion Assistant also depends on the engine version. Select the engine version from the drop-down menu available in the toolbar.
Syntax highlight - allows you to identify the components of an expression. To customize the colors of the components of the expression, open the Preferences dialog box and go to .
The usual edit actions Cut, Copy, Paste, Select All, Undo, Redo are available in the pop-up menu of the top editable part of the view.