XML Parsing

Uche Ogbuji uche at ogbuji.net
Sat Feb 21 10:21:13 EST 2004


Chris Herborth <chrish at cryptocard.com> wrote in message news:<Gz3Yb.3921$Cd6.177581 at news20.bellglobal.com>...
> Andrew Clover wrote:
> 
> > With simple XML and a bit of care avoiding problem areas (see eg.
> > http://pyxml.sourceforge.net/topics/compliance.html ) it is possible to
> > write software that will work equally well with minidom, cDomlette and
> > other DOM implementations.
> 
> Ain't standards great? ;-)

We never claim cDomlette to be a DOM implementation.  The main page
for cDomlette info is:

http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/domlettes

It starts with:

"Domlette is 4Suite's lightweight DOM implementation. It is optimized
for XPath operations, speed, and relatively low memory overhead, at
least when compared to 4DOM and minidom. It is not fully DOM
compliant, but it does provide an interface very close to DOM Level 2.
In Domlette, where DOM and XPath disagree, XPath wins."

That last point is the salient one.  We wrote cDomlette for a reason:
4XSLT was *way* too slow operating on standard DOM and we needed a
super-fast alternative specialized for XPath processing.  The emphasis
was on XPath data model rather than DOM.  Both, BTW, are W3C standards
and yet they conflict in a few key ways.  Go figure.

Anyway, cDomlette is a useful and very fast general API for XML
processing.  You can use it if you don't need full DOM support.

--Uche
http://uche.ogbuji.net



More information about the Python-list mailing list