Re: XML validation / exception.

2013-01-25 Thread dieter
Andrew Robinson writes: > On xml.etree, > When I scan in a handwritten XML file, and there are mismatched tags -- > it will throw an exception. > and the exception will contain a line number of the closing tag which > does not have a mate of the same kind. > > Is there a way to get the line numbe

XML validation / exception.

2013-01-24 Thread Andrew Robinson
A quick question: On xml.etree, When I scan in a handwritten XML file, and there are mismatched tags -- it will throw an exception. and the exception will contain a line number of the closing tag which does not have a mate of the same kind. Is there a way to get the line number of the earlier