Here I am trying to read the TID Value and I am able to read the Value(Intially it is 1)..and every time I need to increment by one and update to TID node value
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument xml = new XmlDocument();
xml.Load(Server.MapPath("~/XmlFile1.xml"));
XmlNode node = xml.SelectSingleNode("AllID/ID/TID");
int s = Convert.ToInt32( node.InnerText);
node.InnerText= s++.ToString();
xml.Save(Server.MapPath("~/XmlFile1.xml"));
}
But here it is not updating the TID value
<AllID>
<ID>
<TID>1</TID>
</ID>
</AllID>
OldValue