我想从 xml 文档中删除一个 xml 节点,但我不知道可以使用哪个函数来实现。你能告诉我该怎么做吗?
Const XMLDataFile = "C:\TestData.xml"
xmlDoc = CreateObject("Microsoft.XMLDOM")
xmlDoc.Async = False
xmlDoc.Load(XMLDataFile)
nodes = xmlDoc.SelectNodes("/bookstore/book/author[text()='name=admin']")
' get their names
For i = 0 To (nodes.Length - 1)
Title = nodes(i).NodeValue
MsgBox("The node will be deleted " & Title)
'TODO: The expect code here
Next