title: Loading dynamic XML files in to a tree view control
body: <p>I am a newbie in programming and I'm trying to display metadata of some files using C#.Net. I have been using Visual Studio Express 2015 for web with .NET framework version 4.5.2.</p>
  
  <p>I have created several xml files for meta data and placed a TreeView control in my design page.Can you please tell me a way to populate the TreeView control from the  xml files. A sample xml file will look like below.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;  
  &lt;metadata&gt;  
  &lt;idinfo&gt;  
  &lt;citation&gt;  
  &lt;citeinfo&gt;  
  &lt;origin&gt;Jay Diffendorfer&lt;/origin&gt;  
  &lt;origin&gt;Roger Compton&lt;/origin&gt;  
  &lt;origin&gt;Louisa Kramer&lt;/origin&gt;  
  &lt;origin&gt;Zach Ancona&lt;/origin&gt;  
  &lt;origin&gt;Donna Norton&lt;/origin&gt;  
  &lt;pubdate&gt;201402&lt;/pubdate&gt;  
  &lt;title&gt;Onshore Industrial Wind Turbine Locations for the United States through July 2013&lt;/title&gt;  
  &lt;geoform&gt;Maps and Data - vector digital data&lt;/geoform&gt;  
  &lt;pubinfo&gt;  
  &lt;pubplace&gt;Denver, CO&lt;/pubplace&gt;  
  &lt;publish&gt;United States Geological Survey (USGS)&lt;/publish&gt;  
  &lt;/pubinfo&gt;  
  &lt;onlink&gt;http://dx.doi.org/10.3133/ds817 andhttp://eerscmap.er.usgs.gov/windfarm/&lt;/onlink&gt;  
  &lt;/citeinfo&gt;  
  &lt;/citation&gt;  
  &lt;/idinfo&gt;  
  &lt;/metadata&gt;  
  </code></pre>
  
  <p>The  above xml should be displayed as a tree strcture as :</p>
  
  <pre><code> Identification Information:
            Citation:
                 Citation Information:
                            Originator: Jay Diffendorfer
                            Originator: Roger Compton
                            Originator: Louisa Kramer
                            Originator: Zach Ancona
                            Originator: Donna Norton
                            Published Date: 2014 02 
                            Title: Onshore Industrial Wind Turbine Locations for the United States through July 2013
                            Geoform:Maps and Data - vector digital data
                            Publication Information: 
                                       Published Place: Denver, CO
                                       Published by: United States Geological Survey (USGS) 
                                       Online Link:http://dx.doi.org/10.3133/ds817 andhttp://eerscmap.er.usgs.gov/windfarm/
  </code></pre>