Hello,

Doing some tests even in libxml2 2.7.6 it is not working as i would expect
using xmlSetProp to change the values of href elements and then trying to
access the content output->conv-content is not giving me the entire data,
it is truncated.

So i think i'm missing something.

Any idea ?

Thanks

Breno


On Wed, Jun 5, 2013 at 3:20 PM, Breno Silva <breno.si...@gmail.com> wrote:

> Hello guys,
>
> I have a feature where i get an element using xmlGetProp then i change it
> and re-set using xmlSetProp.
>
> Using the old libxml2 (2.7.6) i could copy the right http response body to
> a local buffer just accessing the output->buffer->content
>
> memcpy(buf, output_buf->buffer->content, output_buf->buffer->use);
>
> I changed it to (using libxml2 2.9.0):
>
> memcpy(buf, xmlOutputBufferGetContent(output_buf),
> xmlOutputBufferGetSize(output));
>
> However i'm getting partial/truncated response body. Do i need to update
> something ?
>
> Thanks
>
> Breno
>
>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to