I have the following xml :
I need to remove all the values under <payment_details> so that the xml will be in the desired format as below:
My code is :
Set xmlDoc = CreateObject("MSXML.DOMDocument")
xmlDoc.async = False
Set xmlnodeval = xmlDoc.selectSingleNode("../../A")
If False = (xmlNode8 Is Nothing) Then
xmlnodeval.Text = ""
But this code removes all the tag names as well and the <A> tag is just shown as </A> without the inner tag names.How can I achieve the desired format mentioned above through this code.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!