<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; MSXML.DOMDocument</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/msxmldomdocument/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 20:40:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to remove the values of xml tags null without removing the tag names?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-remove-the-values-of-xml-tags-null-without-removing-the-tag-names/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-remove-the-values-of-xml-tags-null-without-removing-the-tag-names/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 12:00:42 +0000</pubDate>
		<dc:creator>Serenewebster</dc:creator>
				<category><![CDATA[MSXML.DOMDocument]]></category>
		<category><![CDATA[NULL values]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I have the following xml : &#8230; &#8230;. &#60;A&#62; &#60;B&#62; &#60;C&#62;11122&#60;/C&#62; &#60;D&#62;loop&#60;/D&#62; &#60;E&#62;30-03-05&#60;/E&#62; &#60;F&#62;integer&#60;/F&#62; &#60;G&#62;decimal&#60;/G&#62; &#60;H /&#62; &#60;/B&#62; &#60;/A&#62; &#8230; &#8230;. I need to remove all the values under &#60;payment_details&#62; so that the xml will be in the desired format as below: &#8230; &#8230;. &#60;A&#62; &#60;B&#62; &#60;C&#62;&#60;/C&#62; &#60;D&#62;&#60;/D&#62; &#60;E&#62;&#60;/E&#62; &#60;F&#62;&#60;/F&#62; &#60;G&#62;&#60;/G&#62; &#60;H /&#62; &#60;/B&#62; [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I have the following xml :<br />
&#8230;<br />
&#8230;.<br />
 <b>&lt;A&gt;<br />
    &lt;B&gt;<br />
  	&lt;C&gt;11122&lt;/C&gt;<br />
  	&lt;D&gt;loop&lt;/D&gt;<br />
  	&lt;E&gt;30-03-05&lt;/E&gt;<br />
  	&lt;F&gt;integer&lt;/F&gt;<br />
  	&lt;G&gt;decimal&lt;/G&gt;<br />
  	&lt;H /&gt;<br />
    &lt;/B&gt;<br />
&lt;/A&gt;</b><br />
&#8230;<br />
&#8230;.<br />
I need to remove all the values under &lt;payment_details&gt; so that the xml will be in the desired format as below:<br />
&#8230;<br />
&#8230;.<br />
    <b> &lt;A&gt;<br />
           &lt;B&gt;<br />
                  &lt;C&gt;&lt;/C&gt;<br />
                 &lt;D&gt;&lt;/D&gt;<br />
                  &lt;E&gt;&lt;/E&gt;<br />
                  &lt;F&gt;&lt;/F&gt;<br />
                  &lt;G&gt;&lt;/G&gt;<br />
                  &lt;H /&gt;<br />
          &lt;/B&gt;<br />
   &lt;/A&gt;</b><br />
&#8230;<br />
&#8230;.</p>
<p>My code is :</p>
<pre>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</pre>
<p>But this code removes all the tag names as well and the &lt;A&gt; tag is just shown as &lt;/A&gt; without the inner tag names.How can I achieve the desired format mentioned above through this code.</p>
<p>Thank you</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-remove-the-values-of-xml-tags-null-without-removing-the-tag-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.017 seconds using memcached
Object Caching 312/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-18 22:03:45 -->