Deleting Nodes question

wxdqz

New Member
Hello,I am using the following code to remove nodes, but the nodes don'tappear to be removed. What is the problem?Set aNodeList = domDoc.selectNodes("//Items")iCnt = 0iCntNodes = aNodeList.lengthSet nodeParent = domDoc.documentElementWhile (iCntNodes > 0)If aNodeList.Item(iCntNodes - 1).Attributes(7).Text <> sShipTo Then' Deleate the NodeSet nodeChild = nodeParent.removeChild(nodeParent.childNodes.Item(iCntNodes- 1))iCnt = iCnt + 1End IfiCntNodes = iCntNodes - 1WendThanksZack
 
Back
Top