Re: [xml] writing an xmlNodePtr to a char* (or xmlChar)
- From: Daniel Veillard <veillard redhat com>
- To: Martyn Russell <jackrussell subdimension com>
- Cc: xml <xml gnome org>
- Subject: Re: [xml] writing an xmlNodePtr to a char* (or xmlChar)
- Date: Mon, 4 Mar 2002 18:42:42 -0500
On Mon, Mar 04, 2002 at 10:52:35PM +0000, Martyn Russell wrote:
Is it possible to take a particular node and write the output of the
tree to a char* ?
Hum not directly,
I have seen the function xmlNodeDumpOutput, should I use this? Or is the
only function closely available for this xmlDocDumpMemory?
The simplest is to use xmlNodeDump() and get the string from the buffer.
If you really want to serialize to a given buffer without copy, the best is
to build an xmlOutputBufferPtr() specific to the semantic needed and then
use xmlNodeDumpOutput(), but this require you write the specific callbacks
for the xmlOutputBufferPtr semantic.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
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]