XPathExpression.Evaluate

Syntax:

Evaluate(<ContextNode>, <ResultType>)

Parameters:

<ContextNode> (required)

Type: DOMAttribute, DOMDocument, DOMElement, DOMDocumentType, DOMNotation, DOMEntity, DOMDocumentFragment, DOMText, DOMComment, DOMCDATASection, DOMProcessingInstruction, DOMEntityReference, XPathNamespace.
DOM node is the context for XPath expression calculation. The node must belong to the same DOM document, which was used to create XPath expression (otherwise an exception will be called) and can be one of the following types: Document, Element, Attribute, Text, CDATASection, Comment, ProcessingInstruction, XPathNamespace.

<ResultType> (optional)

Type: DOMXPathResultType.
Type of result of XPath expression calculation.
Default value: Any.

Returned value:

Type: XPathResult.

Description:

Calculates XPath ezpression for the specified context node.

Availability:

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

    

1C:Enterprise Developer's Community