Поделиться через


removeNext Method (Windows Embedded CE 6.0)

1/6/2010

Removes the next node.

Script Syntax

var objXMLDOMNode = objXMLDOMSelection.removeNext();

Remarks

Ee503523.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503523.collapse(en-US,WinEmbedded.60).gifScript Return Value

Object. Returns the node that was removed, or Null if there is no nextNode Method (IXMLDOMNamedNodeMap) to remove. If the parameter is Null, the removed node is not returned, but is still removed.

Ee503523.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT removeNext(
  IXMLDOMNode** ppNode
);

Remarks

Ee503523.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • ppNode
    [out, retval] The node that was removed, or Null if there is no nextNode Method (IXMLDOMNamedNodeMap) to remove. If the parameter is Null, the removed node is not returned, but is still removed.

Ee503523.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if the method is successful.
  • S_FALSE
    Value returned if no nodes left in the selection.
  • E_PENDING
    Value returned if all nodes cannot be found at this time (in which case no nodes are removed).

Ee503523.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

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

Reference

XML DOM Methods

Other Resources