X
xargon
Hi everyone,
I am using VBA for MS office. I would like to know how I can delete all
children of a node. The method should not fail if the node has no
children.
So, basically I have:
Dim xmlParser as Object
Set xmlParser = CreateObject("MSXML2.DOMDocument")
xmlParser.LoadXML (documentXMLData)
Dim serializedElment as Object
Set serializedElement =
xmlParser.ChildNodes(0).selectSingleNode("SerializedData")
Now I want to delete all children (if any) of the serializedElement node.
How can I do this?
Thanx!
Xargon
I am using VBA for MS office. I would like to know how I can delete all
children of a node. The method should not fail if the node has no
children.
So, basically I have:
Dim xmlParser as Object
Set xmlParser = CreateObject("MSXML2.DOMDocument")
xmlParser.LoadXML (documentXMLData)
Dim serializedElment as Object
Set serializedElement =
xmlParser.ChildNodes(0).selectSingleNode("SerializedData")
Now I want to delete all children (if any) of the serializedElement node.
How can I do this?
Thanx!
Xargon