[XML-SIG] Switching back and forward between SAX and DOM
Eric van der Vlist
vdv@dyomedea.com
Wed, 05 Jun 2002 23:50:33 +0200
Just a Python newbie question to try to find my way into XML processing
with Python :-)
In Java, I like to use both SAX and DOM (I prefer using SAX to bind
documents to and from predefined data models and DOM when manipulating
documents) and I need|want to do the same with Python (I am currently
using Python 2.2 with 4suite 0.12 latest CVS).
How can you get a DOM tree out of SAX events (if for instance you've
developed a ContentHandler, can you retrieve a part of the document as a
DOM tree by forwarding the events to a DOM parser?) and vice versa, how
can I serialize a DOM tree as SAX events which can be processed by a
ContentHandler?
Thanks
Eric
--
See you in San Diego.
http://conferences.oreillynet.com/os2002/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
http://xsltunit.org http://4xt.org http://examplotron.org
------------------------------------------------------------------------