xml.sax problem: getting parse() to read a string

Fredrik Lundh fredrik at pythonware.com
Mon Jun 5 12:47:45 EDT 2006


sturnfie at gmail.com wrote:

> So in recap, it looks like it is trying to take my string argument as a
> file handler.  How can I get around this?

if you want to parse a string, use xml.sax.parseString instead of 
xml.sax.parse.

</F>




More information about the Python-list mailing list