Closed. This question is . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago. Improve this question

There are a lot of ways in python provided by the standard installation to process an XML, even more as external packages, see http://wiki.python.org/moin/PythonXml.

For my project I use minidom , it does what I need, but the error reporting is rather telegraphic, for example:

no element found: line 7, column 0

which is correct but is not very human readable, no hinting to which element might be needed. Because of lack of information, I cannot report the error to an user.

This is just an example but there are more cases where minidom could be more detailed but is not. So I need something detailed, an error detailed enough that I can pass the parsing error back to an user.

Which of the standard XML „processing solutions” has the most detailed error reporting, if none which of the external packages for XML support has that?

The xml file that was used for parsing, which in the code is used as config.xml is: