Fixing bug with ampersands in XML content