How to remove the values of xml tags null without removing the tag names?

5 pts.
Tags:
MSXML.DOMDocument
NULL values
XML
Hi, I have the following xml : ... .... <A> <B> <C>11122</C> <D>loop</D> <E>30-03-05</E> <F>integer</F> <G>decimal</G> <H /> </B> </A> ... .... I need to remove all the values under <payment_details> so that the xml will be in the desired format as below: ... .... <A> <B> <C></C> <D></D> <E></E> <F></F> <G></G> <H /> </B> </A> ... .... My code is :
Set xmlDoc = CreateObject("MSXML.DOMDocument")

       xmlDoc.async = False
       xmlDoc.loadXML ("test.xml")
       
      Set xmlnodeval = xmlDoc.selectSingleNode("../../A")
   
       If False = (xmlNode8 Is Nothing) Then

             xmlnodeval.Text = ""
       End If
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. Thank you
ASKED: June 25, 2009  12:00 PM
UPDATED: June 25, 2009  12:13 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following