Re: [xml] xmlElemDumpMemory

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Sat Jan 20 2001 - 04:03:20 EST


On Fri, Jan 19, 2001 at 10:21:36PM -0800, mskala@ansuz.sooke.bc.ca wrote:
>
> If you want to write a document to a file handle, you can use xmlDocDump.
> If you want to write a document to memory, you can use xmlDocDumpMemory.
> If you want to write just an element (not an entire document) to a file
> handle, you can use xmlElemDump.
> I want to write just an element (not an entire document) to memory; I want
> to use xmlElemDumpMemory. But xmlElemDumpMemory does not exist.

  No need to do a long complain:
void
xmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int level,
            int format);

then dump the buffer wherever you want ...

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Jan 20 2001 - 04:43:54 EST