Hi
You can find many good articles in internet describing how to read/traverse/update xml.
You can use LINQ to XML mechanism.
http://msdn.microsoft.com/en-us/library/bb387098.aspx
LINQ to XML[
^]
Or you can simply
1. Read the xml file in to dataset
2. Modify the dataset
3. Update back in to xml.
For Ex:
DataSet oDs = new DataSet();
oDs.ReadXml("D:\\yourfile.xml");
if (oDs != null && oDs.Tables.Count > 0 && oDs.Tables[0].Rows.Count > 0 && oDs.Tables[1].Rows.Count > 0)
{
for (int i = 0; i < oDs.Tables[0].Rows.Count; i++)
{
oDs.Tables[0].Rows[i]["name"] = "newName";
oDs.Tables[0].Rows[i]["PlaceMark_ID"] = "newID";
}
for (int i = 0; i < oDs.Tables[1].Rows.Count; i++)
{
oDs.Tables[0].Rows[i]["lnngtitude"] = "newval";
}
}
oDs.AcceptChanges();
oDs.WriteXml("D:\\yourfile.xml");
This may not be the best solution. Try to understand various mechanisms. And have a good idea about this. You just try what you know. And if you found any errors, just post here other than expecting the full source code. All the best