Each <Fileis a child of <Files>
http://msdn2.microsoft.com/en-us/lib...movechild.aspx
You use an xpath to get a hold of the <FilesNode.
XmlNode parentN = // some .SelectSingleNode method here
You use xpath to get a hold of the specific <FileNode.
XmlNode childN = // some .SelectSingleNode method here
and then call
parentN.RemoveChild(childN);
See the url above.
"Colin Williams" <co**************@msn.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
I have just started working with XML , and am sure this is easy but
drawing blanks on this one!
e.g
<Files>
<File>C:\File1.txt</File>
<File>C:\File2.txt</File>
<File>C:\File3.txt</File>
</Files>
How do i remove the element <File>C:\File2.txt</File>
Thanks
Colin Williams