title: How to use XmlReader to read data in a List
body: <p>I'd like to take the contents of an XML file and dump it into a list.  Then I'd like to take the strings in the list and parse them for data using XmlReader.  Is there any way to do this?</p>
  
  <p>I'm not very familiar with the XmlReader, and no where near an expert with C#, but I'd like to use something like this:</p>
  
  <pre><code>List&lt;string&gt;fileData = new List&lt;string&gt;();
  string xmlData = "somestring";
  XmlReader reader = XmlReader.Create(new StringReader(xmlData));
  
  /* put all the data in a file into fileData */
  
  foreach (string s in fileData)
  {
     /* use reader.WHATEVERFUNCTION I need to parse fileData for my data */
  }
  </code></pre>
  
  <p>Is there a way to do this?  It seems like I'd have to put the .Create function inside the foreach, which means that I'd have to create a new reader every time I need to use a function.  That doesn't seem like the best of ideas for many reasons.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks!</p>