Include path of XML document in error messages
Improved error messages