By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,984 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

How to delete an XML element SOS URGENT

P: n/a
How can io delete this element in my AdRotator.xml file with VB.NET

I try a lot of things but I don'T have a good result.. Please help me

<Advertisements>

<Ad>

<ImageUrl>http://localhost/UQCN/Images/sample-ad.gif</ImageUrl>

<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx?AD=4</NavigateUrl>

<AlternateText>Test!</AlternateText>

<Keyword>Wrox</Keyword>

<Impressions>1</Impressions>

</Ad>

--------------------------------------------this is the element I want to
delete------------------------------------

<Ad>

<ImageUrl>http://localhost/UQCN/Images/sample-ad2.gif</ImageUrl>

<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx?AD=5</NavigateUrl>

<AlternateText>Test 2</AlternateText>

<Keyword>Wrox2</Keyword>

<Impressions>5</Impressions>

</Ad>

----------------------------------------------------------------------------
------------------------------------------------------

<Ad>

<ImageUrl>http://localhost/UQCN/Images/Aptitudes.jpg</ImageUrl>

<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx?AD=6</NavigateUrl>

<AlternateText>tytvytv</AlternateText>

<Keyword>1</Keyword>

<Impressions>1</Impressions>

</Ad>

</Advertisements>
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Call the XmlNode.RemoveChild function.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemxmlxmlnodeclassremovechildtopic.as
p

Sonu
My Blog: http://weblogs.asp.net/sonukapoor/

-----Original Message-----
How can io delete this element in my AdRotator.xml file with VB.NET
I try a lot of things but I don'T have a good result.. Please help me
<Advertisements>

<Ad>

<ImageUrl>http://localhost/UQCN/Images/sample- ad.gif</ImageUrl>
<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx? AD=4</NavigateUrl>
<AlternateText>Test!</AlternateText>

<Keyword>Wrox</Keyword>

<Impressions>1</Impressions>

</Ad>

--------------------------------------------this is the element I want todelete------------------------------------

<Ad>

<ImageUrl>http://localhost/UQCN/Images/sample- ad2.gif</ImageUrl>
<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx? AD=5</NavigateUrl>
<AlternateText>Test 2</AlternateText>

<Keyword>Wrox2</Keyword>

<Impressions>5</Impressions>

</Ad>

---------------------------------------------------------- ------------------------------------------------------------------------

<Ad>

<ImageUrl>http://localhost/UQCN/Images/Aptitudes.jpg</Imag eUrl>
<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.aspx? AD=6</NavigateUrl>
<AlternateText>tytvytv</AlternateText>

<Keyword>1</Keyword>

<Impressions>1</Impressions>

</Ad>

</Advertisements>
.

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.