Share via


removeNext Method

Removes the next node.

var objXMLDOMNode = objXMLDOMSelection.removeNext();

HRESULT removeNext(
  IXMLDOMNode** ppNode
);

General Remarks

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

var node = list.peekNode();
node.parentNode.removeChild(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.

This method applies to the following interface:

IXMLDOMSelection.

See Also

nextNode Method (IXMLDOMNamedNodeMap)

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.