Answers for "how to read an xml file c#"

C#
3

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;
            }
Posted by: Guest on February-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language