I develop a project which builds a xml file.
Building and saving process for a valid xmlDocPtr object is successful. And
saved xml file is well formatted. But I need to compress this file before saving
it. I used zlib win32 dll version.
(ZLib 1.1.4 for Win98/NT) Files are: zlib114dll/dll32/zlib.dll zlib114dll/dll32/zlib.lib #define _WINDOWS
#define ZLIB_DLL #include "zlib.h" ..Xml Create process...
int nComp = xmlGetDocCompressMode(doc); xmlSetDocCompressMode(doc, 9); xmlSaveFile("c:\\VEReq.xml", doc); Compiles and links without any error.
XML document are saved to disk without compressed. I mean, program works same as uncompressed mode. Saved file is well formatted xml document. How will I use compression option in
libxml?
Thanks in advance. |