how does the xml files work in the c# code example
Example 1: How to read a XML on C#
XmlDocument doc = new XmlDocument();
doc.Load(path);
doc.Save(Console.Out);
foreach (XmlNode node in doc.DocumentElement)
{
string word_name = node.Attributes[0].Value;
string word_translation = node["name of node"].InnerText;
}
Example 2: how to create xml file in c#
new XDocument(
new XElement("root",
new XElement("someNode", "someValue")
)
)
.Save("foo.xml");