Fixing an XML parsing error