Added error messages for possible XML misconfiguration