title: XML parser that contains debug information
body: <p>I'm looking for an XML parser for python that includes some debug information in each node, for instance the line number and column where the node began. Ideally, it would be a parser that is compatible with <code>xml.etree.ElementTree.XMLParser</code>, i.e., one that I can pass to <code>xml.etree.ElementTree.parse</code>.</p>
  
  <p>I know these parsers don't actually produce the elements, so I'm not sure how this would really work, but it seems like such a useful thing, I'll be surprised if no-body has one. Syntax errors in the XML are one thing, but semantic errors in the resulting structure can be difficult to debug if you can't point to a specific location in the source file/string.</p>