EvaluateXPathExpression(<Expression>, <ContextNode>, <Dereferencer>, <ResultType>)


<Expression> (required)

Type: String.
String - XPath expression.

<ContextNode> (required)

Type: DOMDocument.
DOM node is the context for XPath expression calculation. Node should belong to this DOM document (otherwise an exception will be generated); it can be of the following type: Document, Element, Attribute, Text, CDATASection, Comment, ProcessingInstruction, XPathNamespace.

<Dereferencer> (required)

Type: DOMNamespaceResolver.
Namespace permission object in an XPath expression.

<ResultType> (optional)

Type: DOMXPathResultType.
Type of result of XPath expression calculation. If not specified, then expression calculation result may be of any type.
Default value: Any.

Returned value:

Type: XPathResult.


Calculates XPath expression.


Server, thick client, external connection, Mobile application (server).


Exception will be called if an XPath expression contains errors or attempt to dereference the namespace prefix during expression calculation failed.


1C:Enterprise Developer's Community