Improved error messages for problems opening XML files.