I am using VJ#.NET to make an application, and I am needing to read an XML file into a list box and then be able to rip out other elements from this XML file later.

An example from this XML file is:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<itemdb>
<item name="Dwarf remains" description="The body of a Dwarf savaged by Goblins." type="0" members="true"/>
<item name="Tool kit" description="These could be handy." type="1" members="true"/>
I won't post the whole file, as it is over 6000 lines long.

I want to read this XML file, and then insert each <item> element's "name" attribute into a listbox named listBox1

How would I go about this? So far I have this:

VB Code:
  1. DataSet dsItems = new DataSet("DataGrid");
  2.         String filePath = "Items.xml";
  3.         dsItems.ReadXml(filePath);
  4.         dataGrid1.set_DataSource(dsItems);
  5.         dataGrid1.set_DataMember("item");
  6.         dataGrid1.set_CaptionText(dataGrid1.get_DataMember());

Would I need the dataGrid to be able to do this? It outputs it perfectly fine into the dataGrid.