It was a good idea to try to format the XML string as valid HTML