Re: [xml] Generating streaming XML via tree API

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
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.
  create the context using your file descriptor
  Apparently the header heed a bit of love, node is a node and not a document.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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