Python Library Reference
Previous:
13.5.1 XMLParser Objects
Up:
13.5 xml.parsers.expat
Next:
13.5.3 Example
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
errors
object 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.3a0, documentation updated on March 24, 2002.
See
About this document...
for information on suggesting changes.