Re: [xml] storing/printing subtree
- From: Marius Pacha <list matux de>
- To: xml gnome org
- Subject: Re: [xml] storing/printing subtree
- Date: Wed, 30 Sep 2009 15:52:40 +0200
Hi Martin,
exactly what I was looking for. Thanks so much.
@Petr Thanks for your tip as well. It seems to do the job too.
So any experience on which solution might perform better?
xmlSaveTree() vs. xmlNodeDump()
Regards,
marius
Am 30.09.2009 um 12:34 schrieb Martin (gzlist):
On 30/09/2009, Marius Pacha <list matux de> wrote:
Here's what I was trying:
xmlBuffer *buf = xmlBufferCreate();
xmlSaveCtxt *subtree = xmlSaveToBuffer(buf,NULL,XML_SAVE_FORMAT);
int opResult = xmlSaveTree(subtree, cur);
Forgetting to call xmlSaveClose?
<http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveClose>
The attached mini program is what I guess you're trying to do here.
Martin
<savelast.c>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]