[XML-SIG] Parser selection
Sun, 30 May 1999 15:45:39 -0400
> The XML package provides several drivers that map native parser interfaces
> to SAX, thereby providing Python/JPython access to those parsers. What are
> the differentiating factors between the parsers? In other words, what
> features do they provide that would cause me to choose one over the other?
Some parsers are implemented in Python (xmlproc), others are
in C (PyExpat) and some are in a mixture of Python and C
(xmllib+sgmlop). Some parsers are fully validating (xmlproc being the
only one currently) and others are non-validating parsers (xmllib,
PyExpat). In practice, I think the choice comes down to PyExpat for
applications where validation isn't important, and xmlproc when you
need validation (though you could also use external software such as
nsgmls to do parsing and validation).
A.M. Kuchling http://starship.python.net/crew/amk/
We write our names in the sand, and then the waves roll in and wash them away.
-- The emperor Augustus in SANDMAN #30: "August"