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/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to