13.5.2 ExpatError Exceptions 
ExpatError exceptions have a number of interesting
attributes:
- code
- 
  Expat's internal error number for the specific error.  This will
  match one of the constants defined in the errorsobject from
  this module.
  
New in version 2.1.
- lineno
- 
  Line number on which the error was detected.  The first line is
  numbered 1.
  
New in version 2.1.
- offset
- 
  Character offset into the line where the error occurred.  The first
  column is numbered 0.
  
New in version 2.1.
Release 2.4.4, documentation updated on 18 October 2006.
 
See About this document... for information on suggesting changes.