Modify large XML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I need to modify some rows in a very large xml file (> 6GB). The rows that I
want to modify is in the beginning of the file. I am using c#.

What is the best way to do this?

Thanks!
Julia
 
Julia said:
Hi,
I need to modify some rows in a very large xml file (> 6GB). The rows that
I
want to modify is in the beginning of the file. I am using c#.

What is the best way to do this?

Thanks!
Julia

You must write a new file.

Use the readers and writers rather than documents and modify as you go so
that memory usage is minimal. There is no way aroun having 2x6Gb files at
least temporarily.

I question the wisdom of having a 6Gb XML file in the first place.

Perhaps you can just have the bit you want to change as an inclusion.
 

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

Back
Top