XPath Preferences

To configure XPath options, open the Preferences dialog box (Options > Preferences) and go to XML > XSLT-FO-XQuery > XPath.

Oxygen XML Developer allows you to customize the following options:
Unescape XPath expression
When enabled, the entities of an XPath expressions that you type in the XPath/XQuery Builder and the XPath toolbar are unescaped during their execution. For example the expression
//varlistentry[starts-with(@os,'s')]
is equivalent with:
//varlistentry[starts-with(@os,'s')]
Multiple XPath results
Enable this option to display the results of an XPath expression in separate tabs in the Results view.
XPath Default Namespace (only for XPath version 2.0)
Specifies the default namespace to be used for unprefixed element names. You can choose between the following four options:
  • No namespace - If selected, Oxygen XML Developer considers unprefixed element names of the evaluated XPath expressions as belonging to no namespace.
  • Use the default namespace from the root element (default selection) - Oxygen XML Developer considers unprefixed element names of the evaluated XPath expressions as belonging to the default namespace declared on the root element of the XML document you are querying.
  • Use the namespace of the root - If selected, Oxygen XML Developer considers unprefixed element names of the evaluated XPath expressions as belonging to the same namespace as the root element of the XML document you are querying.
  • This namespace - If selected, you can use the corresponding text field to enter the namespace of the unprefixed elements.
Default prefix-namespace mappings
You can use this table to associate prefixes with namespaces. Use these mappings when you want to define them globally (not for each document). Use the New button to add mappings to the list and the Delete button to remove mappings.