[XML-SIG] SAX driver names

Tamito KAJIYAMA kajiyama@grad.sccs.chukyo-u.ac.jp
Fri, 7 Sep 2001 13:22:09 +0900


I wrote:
| 
| I noticed that saxexts.make_parser() in PyXML 0.6.6 accepts both
| "xmlproc" and "xml.sax.drivers.drv_xmlproc", and that the two
| generated parsers seem to have some differences.

I had a mistake.  The driver name "xmlproc" was an invalid one
and the pyexpat driver was used instead silently.

|                                                   For example,
| the parser generated by the former name passes a unicode string
| to saxlib.HandlerBase.characters(), while the parser generated
| by the latter name passes an ordinal string to that method.  I
| wonder if there are other differences.

The difference mentioned above seems the difference between
pyexpat and xmlproc.  Is that an known (intended) difference?
Are there other differences between the two major parsers?

Thanks,

-- 
KAJIYAMA, Tamito <kajiyama@grad.sccs.chukyo-u.ac.jp>