title: How to use reverse in foreach of XmlNodeList?
body: <p>I want to get the data in reverse from foreach</p>
  
  <p>Here <code>XmlNodeList comments = d.SelectNodes("//comments/comment/creator");</code></p>
  
  <p>I've 4 values,I want to reverse it</p>
  
  <p>I've written this code</p>
  
  <pre><code> public void commentM4(string pstId, string cmtId)
      {
          XmlDocument d = new XmlDocument();
          d.LoadXml(content);
  
          XmlNodeList comments = d.SelectNodes("//comments/comment/creator");
          foreach (XmlNode xncomment in  comments)
          {
              commentMemberId = xncomment["id"].InnerText;
              DbConnection.Open();
              DbCommand = new OleDbCommand("select count(response_id) from  mw_response where customer_id = '" + commentMemberId + "' AND post_id='" + pstId + "'", DbConnection);
              OleDbDataReader DbReader = DbCommand.ExecuteReader();
  
              while (DbReader.Read())
              {
                  count = DbReader[0].ToString();
                  cnt = Convert.ToInt32(count);
                  if ((cnt == 0) &amp;&amp; (comments1 != ""))
                  {
                      DbCommand = new OleDbCommand("update mw_response set prod_id = (select prod_id from mw_post where post_id='" + pstId + "'),customer_id = (select customer_id from mw_customer where customer_id='" + commentMemberId + "') where response_id = '" + cmtId + "'", DbConnection);
                      DbCommand.ExecuteNonQuery();
                  }
              }
              DbReader.Close();
              DbConnection.Close();
          }
      }
  </code></pre>
  
  <p>Any ideas? Thanks in advance.</p>