Click to See Complete Forum and Search --> : XML remove child


Jim Bassett
May 21st, 2001, 01:25 PM
Below is a code segment from a VB program I have written. In the code segment I am attempting to remove a node but the code errors on the line oDom.removeChild (oNode), where oDom is declared as a XMLDOM, oNodeand oNode is a XMLNODEList

Set oNode = oNodeList(i)
oDom.removeChild (oNode)
Set oNode = Nothing

What am I doing wrong. Note the node that is being remove does contain some attributes and a CDATA section.

Thanks!!!