hi., this is my xml file
<Persons>
<Person>
<id>1</id>
<Name>Ingrid</Name>
</Person>
<Person>
<id>2</id>
<Name>Ella</Name>
</Person>
</Persons>
i am using linq xml.
here the id should be auto-generated..
i need to check if the value of node id already exists .
if not exists it should create a new id..how to do this using linq. any pointers?
thank you