Here's an example using Linq:
var xmlNodes= from element in XElement.Load("MyXmlFile.xml").XPathSelectElements("/Items/Item/Description")
select new
{
Value = element.Value.Trim()
};
foreach (var node in xmlNodes)
{
MyListBox.Items.Add(node);
}
* In case you are not familiar with XPath, I'd suggest you give it a few minutes to learn, it's quite handy! See
a tutorial here[
^].
Good luck,
Edo