In the attached xml file I need to update the value of each and every price tag by existing value+5000.
and then save this updated xml file with the same name.
Will it be possible to do this in C#?
In the attached xml file I need to update the value of each and every price tag by existing value+5000.
and then save this updated xml file with the same name.
Will it be possible to do this in C#?
Know the answer? Post it. Somebody with the same question will find it here.
Simonas Daskevicius6 pointsPosted May 5, 2015, 3:23 AM EDT
Serialize example:
string sFileName = "XmlDoc"; Object YourObject = new Object(); System.Xml.Serialization.XmlSerializer ser = null; using (FileStream fs = new FileStream(sFileName, FileMode.Create)) { ser.Serialize(fs, YourObject);Deserialize example: