Groups | Blog | Home
all groups > dotnet xml > may 2004 >

dotnet xml : XmlElement question


Daniel Cazzulino [MVP XML]
5/31/2004 3:14:08 PM



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 23/05/2004

Martin Honnen
5/31/2004 6:25:21 PM


[quoted text, click to view]


[quoted text, click to view]

xmlElement.ParentNode.RemoveChild(xmlElement)

--

Martin Honnen
http://JavaScript.FAQTs.com/
Sonu Kapoor
5/31/2004 8:13:30 PM
See: http://weblogs.asp.net/sonukapoor/articles/137700.aspx

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


[quoted text, click to view]
Timothy V
5/31/2004 11:59:28 PM
Hi,
I have and XmlElement from within an XmlDocument. I wish to RemoveAll() from
within the XmlElement plus itself. For example:

<Notes>
<Note id="n1">
<Info>A message</Info>
</Note>
<Note id="n2">
<Info>another message</Info>
</Note>
</Notes>

I wish to delete the node, Note with id="n1". I have assigned it to an
XmlElement, but i am unsure how to remove the element from the file.

Any help would be appreciated. Thank you in advance,

Tim.

AddThis Social Bookmark Button