Pure Python XML parser

Uche Ogbuji uche at ogbuji.net
Wed Oct 8 09:46:07 EDT 2003


jjl at pobox.com (John J. Lee) wrote in message news:<873ce5q707.fsf at pobox.com>...
> Peter Hansen <peter at engcorp.com> writes:
> 
> > "Ellinghaus, Lance" wrote:
> > > 
> > > Does anyone have a pure python XML parser?
> > 
> > http://www.fourthought.com (I *think* it's pure XML...)
> 
> I guess you're referring to 4DOM.  Fourthought no longer maintain
> that.  It's part of PyXML now.
> 
> I was about to say that 4DOM isn't up-to-date with the DOM spec, but
> now I come to think of it, I'm not certain whether the XML part is or
> is not up-to-date.  What I am sure about is that the HTML DOM part
> isn't (it's level 2, but based on the prosposed spec. of September
> 2000).
> 
> Whatever, 4DOM certainly isn't as standards-compliant as pxdom.

I haven't used 4DOM for years.  There are certainly better
alternatives.

But I think this discussion is off topic.  The OP was asking about
*parsers*, not DOM implementations.  For all we know, he's not even
interested in DOM at all.  After all, DOM pretty much sucks.

The only pure Python parser I know of is xmlproc, which is part of
PyXML.

http://pyxml.sourceforge.net/

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




More information about the Python-list mailing list