Re: [xslt] XsltSaveResultFileToMemoryBuffer() ?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] XsltSaveResultFileToMemoryBuffer() ?
- Date: Fri, 27 Jul 2001 13:24:13 -0400
On Fri, Jul 27, 2001 at 06:03:36PM +0200, Heiko Rupp wrote:
> Hello,
>
> while can read XML files from memory
>
> with xmlCreateMemoryParserCtxt(), it looks like the
> oposite function is missing. I can do this "by hand",
> but wouldn't it be good to have the equivalent
> of xsltSaveFileResultToFile(), which uses a (predefined)
> memory area as its target?
The 'generic' API is xsltSaveResultTo()
http://xmlsoft.org/XSLT/html/libxslt-xsltutils.html#XSLTSAVERESULTTO
it takes a generic I/O output buffer. It seems libxml doesn't export
a output buffer builder for a memory area:
http://xmlsoft.org/html/libxml-xmlio.html
But it should not be hard to do a routine, actually if you
submit a patch for this I will integrate it (there is just a bit
of control needed to check that your output buffer won't be outgrown)
If your memory area is not constrined just use xmlAllocOutputBuffer ()
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
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]