title: Getting File Attributes with XMLReader in C#
body: <p>I used the XMLReader format:</p>
  
  <hr>
  
  <pre><code>XmlReader xmlReader = XmlReader.Create("batch.xml");
  while (xmlReader.Read())
  {
      //Keep reading
      if (xmlReader.Name.Equals("Keyword") &amp;&amp; (xmlReader.NodeType == XmlNodeType.Element))
      {
          // get attribute from the Xml element here
          string keywords = xmlReader.GetAttribute("name"); 
      }
  }
  </code></pre>
  
  <p>How do I cast "keywords" as a String[]?</p>