I am a beginner programmer starting off with C#, and web services.
In the Service.cs
file of my web service, I create a ReadXMLFile()
meth
I think, that you get best result using XmlDocument
public void ReadXML()
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(".xml");
xmlEntities = new List();
foreach(XmlNode item in xmlDoc.ChildNodes)
{
GetChildren(item);
}
}
private void GetChildren(XmlNode node)
{
if (node.LocalName == "Строка")
{
//
}
else
{
foreach (XmlNode item in node.ChildNodes)
{
GetChildren(item);
}
}
}