83. xpathSearch
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 83. xpathSearch

Parameter syntax:

    [ implicit_selection ]? [ XPath_expression ]?

Evaluates specified XPath expression in the context of selected node. The evaluation of the XPath expression must return a nodeset. If this nodeset exclusively contains contiguous siblings, all the nodes in the nodeset are selected. Otherwise, first node (in document order) of the nodeset is selected.

If the evaluation of the expression returns attributes, the corresponding elements are selected.

It is not possible to select the document node or sibling nodes of the root element.

If the XPath expression is not specified, a dialog box is displayed. This dialog box has a Simple tab which allows to specify commonly used expressions without having to know the XPath standard and an Advanced tab which allows to specify arbitrarily complex XPath expressions.

When this command is used interactively, qualified names found in the XPath expression may be specified using the namespace prefixes defined in the document. When this command is used in XXE configuration files, the {`namespace_URI`}`local_part` notation must be used instead.

Example:

    xpathSearch
    xpathSearch [implicitNode]
    xpathSearch //@revisionflag
    xpathSearch [implicitElement] following::xs:complexType[1]
    xpathSearch [implicitElement] following::{http://www.w3.org/2001/XMLSchema}complexType[1]

Prev | Up | Next
82. wrap | Home | 84. XXE.close