Hi,
Try this below sample:
private void button2_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
XmlTextReader r = new XmlTextReader(@"XML File Path");
r.Read();
while (r.Read())
{
if (r.NodeType == XmlNodeType.Element)
{
if (r.Name == "unit")
{
r.Read();
listbox1.Items.Add(Convert.ToString(r.Value));
}
}
}
}
Regards,
Vasuki.