Oops some of the regex replaces produced malformed xml.