[XML-SIG] Uniform interface with Python 2.0

uche.ogbuji@fourthought.com uche.ogbuji@fourthought.com
Fri, 08 Sep 2000 11:02:37 -0600

> Same goes for dom. To create a DOM tree with the current CVS, you
> write
> from xml.dom.ext.reader import Sax
> doc = Sax.FromXmlStream(file)
> That won't work with Python 2. Instead, there you write
> import xml.dom.minidom
> doc = xml.dom.minidom.parse(file)
> Is there hope that there can be a common API that works with both
> Python 2.0 and PyXML?

Actually, 4DOM (which comes with PyXML) is just minidom's "big brother".  It 
is a conscious decision to migrate.  minidom probably isn't yet in the PyXML 
CVS because Paul has been busy with the Python 2.0 work.  It should go into 
the PyXML distro soon so that people can use minidom in all cases, and can 
migrate to 4DOM if they need to.

Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python