Fix compatible for XML strings