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

dotnet xml : compressing XML file


john smith
7/27/2004 10:30:02 PM
Hi,

In my .NET application I save data in an XML file.
When opening a project from an XML file I parse the file and recreate objects, set settings etc.
The problem is that the XML file can be very big (~20Mb).
How can I compress/decompress it programatically?
Is there such a functionality in .NET framework or I have to code some alghorhytm for compressing/decompressing by myself? Format does not matter.

Thank you

PS
Sorry for repeating this mesage
Emil Kvarnhammar
7/28/2004 10:05:21 AM
Hi,

Handling big XML documents are not very efficient, especially not with DOM.
You might want to consider
to split it up in different docs.

There's no compression classes in .NET framework.

Use SharpZipLib from http://www.icsharpcode.net.
It is a great lib for compression.

regards
Emil Kvarnhammar


[quoted text, click to view]

AddThis Social Bookmark Button