Microsoft XML SDK 2.6 - XML Reference

expr Property

Gets or sets the XPath expression string.

strExpression = objXMLDOMSelection.expr
objXMLDOMSelection.expr = strExpression

Remarks

Setting a new expression immediately resets the state of this node list to the beginning unless the expression is invalid and an error is returned, in which case it has no effect. It does not reset the context.

See Also

Applies To: XMLDOMSelection Object