Microsoft XML SDK 2.6 - XML Reference

removeNext Method

Removes the next node that would be returned by peekNode or nextNode.

Set objXMLDOMNode = objXMLDOMSelection.removeNext

Remarks

The removeNext method is equivalent to the following (except that it also works for attributes):

var node = list.peeknode();
node.parentnode.removeChile(node);

The side effect is that the length of the collection is decremented and the nextNode and item methods will not return it because it has been removed.

See Also

Applies To: XMLDOMSelection Object