changed from tolerantXML to tolerantText