Deal with a wider range of xml strings