Click to return to the Reusing Browser Technology home page    
IHTMLDOMNode::replaceNode...     IHTMLDOMTextNode Interfac...     IHTMLDOMNode Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDOMNode::swapNode Method


Replaces a node's current node with the new node.

Syntax

HRESULT swapNode(
    IHTMLDOMNode *othernode, 
    IHTMLDOMNode **swappednode 
);

Parameters

othernode
Address of an IHTMLDOMNode interface that specifies the node to be added.
swappednode
Address of a pointer to an IHTMLDOMNode interface that specifies the node to be removed.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

cloneNode, removeNode, replaceNode


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.