|
|
|
|
|
|
| |
   
replaceChild()
Is a member of:
|
DOMDocument
XMLDOMNode
XMLDOMAttribute
XMLDOMCDATASection
XMLDOMComment
XMLDOMDocumentFragment
XMLDOMDocumentType
XMLDOMElement
XMLDOMEntity
XMLDOMEntityReference
XMLDOMNotation
XMLDOMProcessingInstruction
XMLDOMText
XTLRuntime
|
Syntax
set objXMLDOMNode = objXMLDOMNode.replaceChild(newChild, oldChild)
Remark
This method replaces one child Node with another child Node, instead of removing the old child and then appending the new child.
The parameter newChild is the Node that will replace the oldChild Node. If newChild is NULL, oldChild is removed without a replacement. The oldChild that had been replaced is returned in the objXMLDOMNode object, if the execution of this method is successful.
Again, take note of the types of Nodes you are dealing with. Some types of Nodes cannot be children, and therefore cannot be used with this method.    
This manuscript is an abridged version of a chapter
from the Manning
Publications book XML
Programming with VB and ASP. This chapter looks at the Microsoft DOM objects. NOTE: Most images have been removed to increase speed and many of the code comments have also been removed for presentation. Please purchase the book to enjoy the full experience of all the chapters with images and code comments!
|
|
|
|
|
|
|
|