Cannot parse simple entity references using xml.sax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Debajit Adhikary

    #1

    Cannot parse simple entity references using xml.sax

    I'm writing a SAX parser using Python and need to parse XML with
    entity references.

    <tag>&lt;&gt; </tag>

    Only the last entity reference gets parsed. Why are startEntity() and
    endEntity() never called?

    I'm using the following code:


Working...