title: Treeview implementation child nodes missing
body: <pre><code>private void AddNode(XmlNode inXmlNode, TreeNode inTreeNode)
   {
      XmlNode xNode;
      TreeNode tNode;
      XmlNodeList nodeList;
      int i = 0;
      if (inXmlNode.HasChildNodes)
      {
          nodeList = inXmlNode.ChildNodes;
          for (i = 0; i &lt;= (nodeList.Count - 1); i++)
          {
              xNode = inXmlNode.ChildNodes[i];
              if (null != xNode)
              { 
                  inTreeNode.ChildNodes.Add(new TreeNode(xNode.Attributes[0].Value));                        
                  tNode = inTreeNode.ChildNodes[i];  
                  AddNode(xNode, tNode);
              }
          }
      }
      else
      {
          inTreeNode.Text = inXmlNode.InnerText.ToString();
      }
  }
  </code></pre>
  
  <p>But am getting only parent node and child nodes are not added . After going through various sites i learned that this is the error </p>
  
  <pre><code>inTreeNode.Nodes.Add(new TreeNode(xNode.Attributes[0].Value));                        
                          tNode = inTreeNode.Nodes[i];
  </code></pre>
  
  <p>but am not getting inTreeNode.Nodes option.</p>
  
  <p>Thanks for Help </p>