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

dotnet xml : XML and Large FIle (Append)


amyl NO[at]SPAM paxemail.com
9/8/2004 7:40:34 PM
It is my understanding that in order to append XML to a file you would
have to read the file in as an XML document and insert the node.
However, what if the file is close to 1GB in size? Would you require
[quoted text, click to view]

Also, is XML an optimal solution when files get this large? I know I
can solve my issue by formatting the records contained in my program
into a comma delimited format which would make working with the file
easier. However, I can't deny some of the benefits that having an XML
file with my data would bring.

Any thoughts?
frandalc NO[at]SPAM swbell.net
9/10/2004 10:05:55 AM
[quoted text, click to view]

Yikes! I wouldn't want to load that thing into the DOM - If you need
to append to the file I would create what you want to append in the
DOM, then get the resulting Xml string from that. Take the string and
append it to the file that way.

Ice
9/10/2004 4:26:21 PM
or use reader/writer mechanism...
still pretty expensive though for such a big file.

ice
[quoted text, click to view]

Oleg Tkachenko [MVP]
9/12/2004 3:48:02 PM
[quoted text, click to view]

When using XML fragment (XML general external parsed entity) instead of
XML document, you can merely append data to the end of file. See
http://www.tkachenko.com/blog/archives/000053.html


--
Oleg Tkachenko [XML MVP]
AddThis Social Bookmark Button