title: reading repeat xml using xmlnode
body: <p>I Have XML like </p>
  
  <pre><code>&lt;rss&gt;
  &lt;channel&gt;
      &lt;item&gt;
          &lt;category domain="category" nicename="change"&gt;&lt;![CDATA[Changing Lives]]&gt;&lt;/category&gt;
          &lt;category domain="category" nicename="events"&gt;&lt;![CDATA[Events]]&gt;&lt;/category&gt;
          &lt;category domain="category" nicename="leadership"&gt;&lt;![CDATA[Leadership]]&gt;&lt;/category&gt;
          &lt;category domain="category" nicename="spiritual-transformation"&gt;&lt;![CDATA[Spiritual Transformation]]&gt;&lt;/category&gt;
      &lt;/item&gt;
      &lt;item&gt;&lt;/item&gt;
      &lt;item&gt;&lt;/item&gt;
  &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>I am trying to read category innertext(changing lives, Events, Leadership) ... using foreach condition.. but for every loop I am getting Changing Lives only.. here is my code</p>
  
  <pre><code>    protected void btnImportPost_Click(object sender, EventArgs e)
  {
  
      XmlDocument doc = new XmlDocument();
      string strPath = Server.MapPath("~/App_Data/willowcreekassociationblog.wordpress.xml");
      doc.Load(strPath);
      //Get Channel Node
      XmlNode channelNode = doc.SelectSingleNode("rss/channel");
      if (channelNode != null)
      {
          DateTime temp;
          //Add NameSpace
          XmlNamespaceManager nameSpace = new XmlNamespaceManager(doc.NameTable);
          nameSpace.AddNamespace("excerpt", "http://wordpress.org/export/1.2/excerpt/");
          nameSpace.AddNamespace("content", "http://purl.org/rss/1.0/modules/content/");
          nameSpace.AddNamespace("dc", "http://purl.org/dc/elements/1.1/");
          nameSpace.AddNamespace("wfw", "http://wellformedweb.org/CommentAPI/");
          nameSpace.AddNamespace("wp", "http://wordpress.org/export/1.2/");
  
          //Parse each item
          foreach (XmlNode itemNode in channelNode.SelectNodes("item"))
          {
              //some code here
  
              foreach (XmlNode categoryNode in itemNode.SelectNodes("category"))
              {
                  //CMS.SiteProvider.CategoryInfo GetCate = null;
                  string CategoryName = itemNode.SelectSingleNode("category").InnerText;
                  Response.Write(@"&lt;script language='javascript'&gt;alert('root Document:" + CategoryName + "');&lt;/script&gt;");
  
              }
  
          }
      }
  }
  </code></pre>