add edge case for FF where it adds the leading xml tag