Read from XML > Add to Listview
Posted
by Zubirg
on Stack Overflow
See other posts from Stack Overflow
or by Zubirg
Published on 2010-05-15T18:13:39Z
Indexed on
2010/05/15
18:44 UTC
Read the original article
Hit count: 345
I have some problems getting the data that i read from XML split into seperate columns. Any help this new C# coder would get would be appreciated.
XDocument xmlDoc = XDocument.Load("emails.xml");
var t = from c in xmlDoc.Descendants("dt")
select (string)c.Element("name") + (string)c.Element("email");
foreach (string item in t)
{
listView.Items.Add(item);
}
© Stack Overflow or respective owner