views:

15

answers:

0

I have the following XML

<?xml version="1.0" encoding="UTF-8"?>
<Releases>
  <Release version="1">
 <Status>Development</Status>
 <Date>18/8/10</Date>
 <Features>
  <Feature Name="Org">
   <Developer>someone</Developer>
   <Deatil>ejfkhwekjfhefhw</Deatil>
  </Feature>
  <Feature Name="Export">
   <Developer>Some dev</Developer>
   <Deatil>fddddddddd</Deatil>
  </Feature>
 </Features>
  </Release>
  <Release version="2">
 <Status>Development</Status>
 <Date>18/8/10</Date>
 <Features>
  <Feature Name="Org2">
   <Developer>someone2</Developer>
   <Deatil>ejfkhwekjfhefhw</Deatil>
  </Feature>
  <Feature Name="Export2">
   <Developer>Some dev2</Developer>
   <Deatil>fddddddddd</Deatil>
  </Feature>
 </Features>
  </Release>
</Releases>

I want to display it in Visual Studio list boxes in such a way that the Release nodes are displayed in the first listbox. When I select a release version from in the first listbox the second list box should get populated with all the feature nodes under that release node.

I know the long way to do it, which would be searching the XML doc everytime a release node is selected and populating the second list by reading in all the data everytime but there has to be a quicker way to do this in visual studio..?