I've written a SAX XML parser and cannot seem to be able to parse simple
entity references e.g.

<pre>
   &lt;
   abc
   &gt;
</pre>

It looks the XML parser that i'm using hasn't implemented the startEntity()
and endEntity() methods.

How do I parse such simple entity references using Python?

---------------------------------------------

The code I'm using is:

   parser = make_parser()
   saxRssParser = SaxRssParser() # Implementation
   parser.setContentHandler(saxRssParser)
   parser.setProperty(handler.property_lexical_handler, saxRssParser) # For
cdata, comments etc.
   parser.parse(filename)


- Debajit
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to