if PersonList.item(i).attributes(2).text = "杨大伟" then PersonList.item(i).removeNode(true) end if
a.loadXML "<Proot><Person cate='3' name='ChenYiQi' text='陈益其'/><Person cate='3' name='YeChunYan' text='叶春艳'/><Person cate='3' name='ChengHongJiang' text='程洪江'/></Proot>" For i = 0 To a.documentElement.childNodes.length - 1 If a.documentElement.childNodes(i).Attributes(1).Text = "ChenYiQi" Then a.documentElement.removeChild a.documentElement.childNodes(i) Exit For End If Next
PersonList.item(i).removeNode(true)
end if
For i = 0 To a.documentElement.childNodes.length - 1
If a.documentElement.childNodes(i).Attributes(1).Text = "ChenYiQi" Then
a.documentElement.removeChild a.documentElement.childNodes(i)
Exit For
End If
Next