Python and XML processing with SAX

Munna D munna at
Fri Jun 11 14:26:18 CEST 2004

I'm trying to find a way of getting a list of all elements and attributes allowed in an XML DTD (so that I can then compare this against an XML instance and see which of the lements/attributes are not being used). Is there a way to do this with Python and SAX? I'm a comparative newbie to Python, so would be very grateful if someone could explain how I can do this with a small code example.

Thank you in advance,
Sign-up for Ads Free at

More information about the Python-list mailing list