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")
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?