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 <[email protected]> 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>
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml