[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Generating streaming XML via tree API
- From: Daniel Veillard <veillard redhat com>
- To: David Hagood <wowbagger sktc net>
- Cc: xml gnome org
- Subject: Re: [xml] Generating streaming XML via tree API
- Date: Thu, 28 Sep 2006 17:51:38 -0400
On Thu, Sep 28, 2006 at 11:42:38AM -0500, David Hagood wrote:
> > On Thu, Sep 28, 2006 at 09:39:30AM -0500, David Hagood wrote:
>
> > Sorry there is no code in libxml2 for that. Basically any API here which
> > will write the open tag will also write the closing tag, ... unless you
> > use the xmlWriter
> >
> I realize that I may not be able to write the document level tag this way. I
>
> > The library has no API to save non balanced XML Fragment, this is
> > basically
> > a feature to avoid some of the horrors you can see around.
> >
> And I can certainly understand that - and that really is not what I am
> asking for.
>
> What I want is an API which can accept an xmlNodePtr, and write it and its
> children out. The node shall be balanced, closed, etc.
http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree
create the context using your file descriptor
Apparently the header heed a bit of love, node is a node and not a document.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]