Re: [xml] storing/printing subtree



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

Attachment: savelast.c
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]