Expat current line/column number

Nicolas Fleury nid_oizo at yahoo.com_remove_the_
Wed Oct 15 13:42:34 EDT 2003


Alan Kennedy wrote:

> [Nicolas Fleury]
> 
>>     Is it possible with xml.parsers.expat to get the current line and
>>column number if an exception is raised by one of the callbacks (not
>>necessary an xml.parsers.expat.ExpatError)?
> 
> 
> Is this the type of thing you mean?

This is exactly what I mean.  Unfortunately, I've use the parser in 
xml.parsers.expat and not xml.sax, and it seems that parser only 
provides line and column numbers for its own exceptions.  I will 
investigate to convert to xml.sax.  Thx for your help.

Regards,

Nicolas Fleury





More information about the Python-list mailing list