Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# iterate xml

Dictionary<string, string> infos = new Dictionary<string, string>();
XmlDocument doc = new XmlDocument();
doc.Load(xmlDir);

foreach (XmlNode node in doc.DocumentElement.ChildNodes)
{
	infos.Add(node.Name, node.InnerText);
}
 
PREVIOUS NEXT
Tagged: #iterate #xml
ADD COMMENT
Topic
Name
1+1 =