expr Property

Gets or sets the XML Path Language (XPath) expression string.

strExpression = objXMLDOMSelection.expr;
objXMLDOMSelection.expr = strExpression;

HRESULT get_expr(
  BSTR* expression
);
HRESULT put_expr(
  BSTR expression
);

General 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.

This property applies to the following interface:

IXMLDOMSelection.

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.