[quoted text, click to view] Timothy V wrote:
[quoted text, click to view] > 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.
xmlElement.ParentNode.RemoveChild(xmlElement)
--
Martin Honnen
http://JavaScript.FAQTs.com/