[ZPT] TALParser.

Fred L. Drake, Jr. fdrake@acm.org
Mon, 4 Mar 2002 08:07:59 -0500


Alan Kennedy writes:
 > It seems to me that it shouldn't be too hard to implement a 
 > a version of TALParser that uses a SAX2 parser instead: 
 > i.e. it is a case of implementing a TALParser that provides 
 > a SAX2 ContentHandler interface.

That's true.

 > Before I attempt to try that, does anyone know of any java 
 > XML parsers that provide the same interface as expat, i.e. 
 > the same event callbacks? If there was, I could probably 

I don't know of one.  It's not terribly creative in the details, but,
as the native interfaces to the XML parsers tend to be, it's unique.
The Python wrapper exposes the native interface faithfully, and that's
changed several times in the details; the wrapper has followed suit,
exposing the API of the Expat actually being used.

So I think a SAX2-based parser is your best bet.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation