Improved error message

Would it be possible to validate the XML schema?