It will be easy to use the XMlDocument and Xpath instead of XMlTextReader.Try the following code
string childNodeName = comboBox1.Text;
string XmlFile = @"D:\MediaPlayer.xml";
if (string.IsNullOrEmpty(childNodeName))
{
return;
}
XmlDocument xmlDoc = new XmlDocument();
if (File.Exists(XmlFile))
{
xmlDoc.Load(XmlFile);
XmlNodeList listRoot = xmlDoc.DocumentElement.SelectNodes("/MediaPlayer/Body/Days/" + childNodeName);
foreach (XmlNode nodesDay in listRoot)
{
if (childNodeName == nodesDay.Name)
{
XmlNodeList listrootDay = nodesDay.ChildNodes;
textBox1.Text = nodesDay.Name;
foreach (XmlNode nodeChild in listrootDay)
{
listBox1.Items.Add(nodeChild.Name + "-" + nodeChild.InnerText);
}
}
}
}