using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
public class MainClass
{
public static void Main()
{
XmlNodeList list = null;
XmlDocument doc = new XmlDocument();
doc.Load(Application.StartupPath + "/employees.xml");
list=doc.GetElementsByTagName("name");
foreach (XmlNode node in list)
{
Console.WriteLine(node.Name);
}
}
}
|