Adding an escape for xml values for indexes and instances