Is it possible to remove everything that is inside my <item> node? I am using ASP.
xmlDoc=loadXMLDoc("sports.xml")
set y= xmlDoc.getElementsByTagName("channel/item")(0)
xmlDoc.documentElement.removeChild
xmlDoc=loadXMLDoc("sports.xml")
set y= xmlDoc.getElementsByTagName("channel/item")(0)
xmlDoc.documentElement.removeChild
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="/css/rss_itemcontent.css" type="text/css" media="screen"?>
<rss xmlns:content="[URL unfurl="true"]http://purl.org/rss/1.0/modules/content/"[/URL] version="2.0">
<channel>
<title>My title</title>
<link>[URL unfurl="true"]http://www.example.com</link>[/URL]
<description>Decription</description>
<item>
<title>Title 1</title>
<pubDate>Wed, 9 Apr 2009 11:58:56 GMT</pubDate>
<link>[URL unfurl="true"]http://www.example.com/link1.html</link>[/URL]
<description>Description 1</description>
<author>Author 1</author>
<category>Baseball</category>
</item>
<item>
<title>Title 2</title>
<pubDate>Wed, 11 Apr 2009 11:58:56 GMT</pubDate>
<link>[URL unfurl="true"]http://www.example.com/link2.html</link>[/URL]
<description>Description 2</description>
<author>Author 2</author>
<category>Baseball</category>
</item>
<item>
<title>Title 3</title>
<pubDate>Wed, 13 Apr 2009 11:58:56 GMT</pubDate>
<link>[URL unfurl="true"]http://www.example.com/link3.html</link>[/URL]
<description>Description 3</description>
<author>Author 3</author>
<category>Hockey</category>
</item>
</channel>
</rss>