[xml] Trying to serialize compressed XML document

2012-02-01 Thread Зукр Тукр
Hello, I'm using libxml2-2.7.8 compiled on Windows with zlib support. I'm trying to get a buffer with compressed XML document. I'm using xmlSetDocCompressMode(doc, 9); function. If I save the doc to a file using xmlSaveFormatFile(), it saves the compressed file fine. However when I'm trying to

[xml] Is there any way to get a compressed buffer in memory?

2012-02-03 Thread Зукр Тукр
Hello, I'm using libxml2 with zlib support. I'm trying to get a compressed XML buffer in memory. I've already tried xmlSaveFormatFileTo(), xmlSaveToBuffer() and different xmlDocDump...() functions. They all make buffer not compressed. When I use xmlSaveFormatFile() to save the exact same