Re: [xml] How to Build DOM tree from sax api
- From: Daniel Veillard <veillard redhat com>
- To: Umesh Chandak <umeshc gslab com>
- Cc: xml gnome org
- Subject: Re: [xml] How to Build DOM tree from sax api
- Date: Thu, 15 May 2008 03:02:10 -0400
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/
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]