Re: [xml] xmlOutputBufferGetSize and xmlOutputBufferGetContent

I think this will fix the issue.

Let me know what is the correct way to access the output content with older libxml2:

memcpy(buffer, (char *)xmlBufferContent(output_buf->conv), output_buf->conv->use);


memcpy(buffer, (char *)output_buf->conv->content, output_buf->conv->use);

Thanks you


On Thu, Jun 6, 2013 at 5:39 PM, Callum Gibson <callum_r_gibson yahoo com au> wrote:
On 06Jun13 09:10, Breno Silva wrote:
}Hello guys thank you for your attention. Let me share with you the code:
}Daniel, i think that would be the problem... there is something i'm missing
}or doing wrong between the time i change the tree and start accessing the
}output buffer.

Based on Daniel's comment, I'd say you need to add a call to
xmlOutputBufferFlush(output_buf) at line 1075, after you've written to it
and before you try to use it.



Callum Gibson @ home

xml mailing list, project page
xml gnome org

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