Is it possible to delete an Xml node

J

jibesh

Hi ,
Is it possible to delete an XML node without using XmlDocument or
dataset. Since my XML file size is more than 120 MB, every time loading and
saving takes too much time
and memory. can any one suggest a better method of deleting a node from an
Xml in .Net 2005.


- Jibesh.V.P
 
J

Jon Skeet [C# MVP]

jibesh said:
Is it possible to delete an XML node without using XmlDocument or
dataset. Since my XML file size is more than 120 MB, every time loading and
saving takes too much time
and memory. can any one suggest a better method of deleting a node from an
Xml in .Net 2005.

Removing an XML node from a file requires rewriting the file at least
from the deletion point. This is a general file handling point - you
can't just "remove" a bit of a file (or add into it, for that matter).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top