Re: [xml] xmlSetDocCompressMode and xmlSaveTree



On Mon, Nov 20, 2006 at 09:45:47AM -0600, David Hagood wrote:
Is setting compression on an xmlDoc via xmlSetDocCompressMode supposed to
cause the output of that document to be compressed when using xmlSaveTree.
or am I misunderstanding its use - because if I set the compression on a
document its output is not compressed.

  xmlSaveTree operate on a subtree, and this function currently doesn't
look up the information stored on the document node. Basically you're saving
a different document, so those kind of options get lost.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]