Re: [xml] xmlDocDumpMemory to my own buffer?



On Fri, Mar 24, 2006 at 01:25:32PM -0800, Rick Jones wrote:
Daniel Veillard wrote:
 build you own I/O handler saving to that specific block.
   http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveToIO

OK.  For now that tells me to live with the copy :)  But I may come back 
to it later.

  
  No. Just get the write I/O handler to happend to your string.
It is not hard, your write callback does an append, and your close
callback does nothing or send the final result !

  It is not hard, it does what you want and can probably take less than
20 lines of glue code, comments included.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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