What I want is to get the children of my tag videos, which in this case would be Mathematics, but when I execute my code c # I get the children of my Mathematical tag, what is being Tema1.
<?xml version="1.0" encoding="utf-8"?>
<Videos>
<Matematica>Tema1</Matematica>
</Videos>
Code C #
XmlDataDocument xmldoc = new XmlDataDocument();
XmlNodeList xmlnode;
FileStream fs = new FileStream(directorio + "XML\videos.xml", FileMode.Open, FileAccess.Read);
xmldoc.Load(fs);
xmlnode = xmldoc.GetElementsByTagName("Videos").Item(0).ChildNodes;
for (int i=0;i<=xmlnode.Item(0).ChildNodes.Count;i++)
{
listado.Add(xmlnode.Item(i).InnerText);
}
return listado;