RE: [xml] xmlDocDumpFormatMemory
- From: "Jones, Mark A (Mark)" <jones lucent com>
- To: "'Remy HAREL'" <rharel ext rd francetelecom com>, xml gnome org
- Cc:
- Subject: RE: [xml] xmlDocDumpFormatMemory
- Date: Fri, 27 May 2005 08:21:51 -0400
below is an exerpt I yanked from the libxml2 documentation. hope it helps - it suggests to me that the
function will return the size of the tree in the variable 'size'.
Function:
=========
void xmlDocDumpFormatMemory (xmlDocPtr cur, xmlChar ** mem, int * size, int format)
Description:
===========
Dump an XML document in memory and return the #xmlChar * and it's size. It's up to the caller to free the
memory with xmlFree(). Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or
xmlKeepBlanksDefault(0) was called
cur: the document
mem: OUT: the memory pointer
size: OUT: the memory length
format: should formatting spaces been added
-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org]On Behalf Of
Remy HAREL
Sent: Friday, May 27, 2005 8:12 AM
To: xml gnome org
Subject: [xml] xmlDocDumpFormatMemory
Re,
I'm using this function (xmlDocDumpFormatMemory ) to dump my xml tree
to a xmlChar*, I'm reading the documentation, and I am said it's up to
me to specify &size ? how can I know the size of the three that will be
dumped ? I supposed the memory for the xmlChar** mem will be reserved by
the function itself ?
I'm looking for this in the API Doc, but I can't find it.
Regards,
Remy
--
_____________________________________________
Remy HAREL - Teamlog |
____________________________________________|
Linux registered user #224740 |
France Telecom Recherche & Developpement |
____________________________________________|
__________________@ http://www.chezrem.org @|
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]