Fixes #3781: improve error message in XML parsing
Merge pull request #22 from ncharles/bug_3781/dev/improve_error_message_for_XML_parsing

Fixes #3781: improve error message in XML parsing