[XML-SIG] RDF Parser -> PyXML

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat, 21 Apr 2001 07:46:31 +0200


> Almost right. It actually uses expat. Which raises the question: should I
> change it to use SAX? Any advantage?

I don't know whether RDF has the notion of validation, in which case
SAX would be an advantage: you could parse it through xmlproc. Also,
if speed matters, parsing through sgmlop might be a gain over using
expat - although this gain could be easily eaten by the SAX overhead.

IOW, if all validation/error checking happens in the RDF parser, then
using xml.parser.expat is the right choice.

Regards,
Martin