Update XML Element in C#To update an XML Element in C#, First we load the XML string into an XmlDocument object either from file or From String, then we use method
GetElementsByTagName()with tag name as parameter. then we select which index we want. Finally we use
InnerXmlproperty to change the element content. You can later either save it or do anything you want to do with new XML.