Fix markup that won't parse via REXML