Microsoft XML SDK 2.6 - XML Reference

context Property

Gets the node (subtree) that is applied to the selection.

Set objXMLDOMNode = objXMLDOMSelection.context
objXMLDOMSelection.context = objXMLDOMNode

Remarks

Because the selectNodes method can be called on any node type, context can also be assigned any node type. A node from a different document than the one that originally created this XMLDOMSelection object can also be specified as long as it has the same threading model. Calling context also resets the state of the node list so that nextNode starts over.

See Also

Applies To: XMLDOMSelection Object