<ball>
<team id= "1 ">
<name> kebe </name>
<age> 27 </age>
</team>
<team id= "2 ">
<name> Mj </name>
<age> 32 </age>
</team>
</ball>
假如要删除id为2的节点怎么删除呢?
网上的都是C#,我用ASP该怎么做呢?
------解决方案--------------------
Set oDoc = CreateObject( "Msxml2.DOMDocument ")
oDoc.async = False
oDoc.Load "dd.xml "
Set oNodes = oDoc.selectNodes( "/ball/team[@id=2] ")
oNodes.removeAll
oDoc.save "dd.xml "
Set oNodes = Nothing
Set oDoc = Nothing