Throw a more descriptive error about malformed XML.