Re: [xml] Using Doc Saving Context Options when dumping doc.

On Tue, May 01, 2007 at 01:14:42PM -0400, Dan Ryan wrote:
Using Doc Saving Context Options to xmlDocDumpMemory( )
How do you omit the XML Declaration and Empty Element nodes
when dumping a document from memory?

Libxml2-2.6.2x provides the capability to output an XML document that
has been loaded, parsed, and stored in memory. The XmlNodeDump and
xmlDocDumpMemory functions will dump the document to a buffer.
However, in certain cases I do "not" want to output the XML Declaration
and Empty Elements as a single empty-node (i.e. <empty/> ).

  Do not use the old API, but the new xmlSave stuff

read the functions in that module


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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