Read Write XML with unique values