I'm writing a SAX parser using Python and need to parse XML with entity references. <tag><></tag> Only the last entity reference gets parsed. Why are startEntity() and endEntity() never called? I'm using the following code: http://pastie.textmate.org/62610