Parsing XML with python using xml.sax, but my code fails to catch Entities. Why doesn\'t skippedEntity() or resolveEntity() report in the following:
import
I think resolveEntity and skippedEntity are only called for external DTDs. I got this to work by modifying the XML.
XML = """
Entity: ¬
"""
The external.dtd contains two simple entity declarations.
Also, I got rid of resolveEntity.
This outputs -
TestHandler.startElement(), test : step: bar foo ()
TestHandler.skippedEntity: not
Hope this helps.