On Thu, May 15, 2008 at 12:28:47PM +0530, Umesh Chandak wrote:
> Hi All,
>      I want to build the DOM tree from sax api's of the libxml. Is there 
> any way that I can achieve this.
> I wan to do something like this.
> 1. I will register the sax api's first
> 2. Once the control come the sax call back handlers . I want to build 
> the DOM tree in the call back handlers registered for sax.

  See the SAX2 module and just call the default handlers from your
own set of callback. See for example xmlSchemaSAXPlug() which does this.
Of course if your callbacks have side effects on the tree building part
you will have to check everything to garantee the tree is correct,

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