Text Compression Algorithm
-
I need a text compression algorithm (preferable open-source etc.) to compress and decompress a few XML files for my project. Anyone has any sources? It doesn't have to be in C# but if possible it should be easily ported. I will probably port it (and not use the binary).
-
I need a text compression algorithm (preferable open-source etc.) to compress and decompress a few XML files for my project. Anyone has any sources? It doesn't have to be in C# but if possible it should be easily ported. I will probably port it (and not use the binary).
How big are the XML Files? Is it worth it? Why do you want to compress? - for reduced storage? or - increased transmission speed? or - encryption? If you can answer the above questions with some really good reasons, then you can use some sort of "Huffman compression algorithm". You can create a functions like: - string compress(string fatstring) - string decompress(string thinstring) If you get this working, can you email me a copy. Thanks. Keep up the good work. Regards Wooble
-
I need a text compression algorithm (preferable open-source etc.) to compress and decompress a few XML files for my project. Anyone has any sources? It doesn't have to be in C# but if possible it should be easily ported. I will probably port it (and not use the binary).
You'll easily find projects like xmill (AT&T but free) and xmlppm (sourceforge). Remember that XML compression should be at the transport level, not at the application level. In other words, that's not a problem that on the network stack XML is made binary. But that really hurts if for any app or for the end user XML is not human-readable. That said, Xml compression is well achieved : - because, by design, element names and attributes appear many times - because LOV (List Of Values) may appear many times too (for the exact same reasons than with a SQL join)/
And I swallow a small raisin.
-
I need a text compression algorithm (preferable open-source etc.) to compress and decompress a few XML files for my project. Anyone has any sources? It doesn't have to be in C# but if possible it should be easily ported. I will probably port it (and not use the binary).
Try SharpZipLib[^] Concussus surgo. When struck I rise.