HI Everybody,
I have this:
private void btnConnectionStrings_Click(object sender, EventArgs e)
{
//if(File.Exists(@"C:\Users\IllesIuliu\Documents\Visual Studio 2010\Projects\WindowsFormsApplication18\GetSelectedID\XML\Configurations.xml"))
XmlDocument docHallo = new XmlDocument();
docHallo.Load(@"C:/Users/IllesIuliu/Documents/Visual Studio 2010/Projects/WindowsFormsApplication18/GetSelectedID/XML/Configurations.xml");
XmlNodeList nodeList = docHallo.GetElementsByTagName("SupplyXMLConnectionString");
//var items = (from i in .Descendants("item")
// select new { Item = i.Element("SEL").Value, Value = i.Element("VALUE").Value }).ToList();
//listBox1.DataSource = items;
//listBox1.DisplayMember = "Item";
//listBox1.ValueMember = "Value";
foreach (XmlNode node in nodeList)
{
listBox1.Items.Add(node);
//listBox1.SelectedValue = node.ToString();
}
}
But as output I get this:system.xml.xmlElement
THX for helping