title: Read xml with atrributes into treeview
body: <p>I've been trying to read a XML into a treeView (and succeded for the most part), but there is one problem: when a tag has attributes, they aren't read and the tree view gets a node only containing the name of the XML tag, but not it's attributes: here is my XML </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;skiu:ikunk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;economicalOperator&gt;
          &lt;id&gt;BGNCA00003003&lt;/id&gt;
      &lt;/economicalOperator&gt;
      &lt;ikunk id="1"&gt;
          &lt;number&gt;4&lt;/number&gt;
          &lt;name&gt;КИНГС ТАБАКО ИНТЕРНЕШЪНЪЛ ЕАД&lt;/name&gt;
          &lt;certProvider&gt;BTRUST&lt;/certProvider&gt;
          &lt;certAuthSn&gt;10221954&lt;/certAuthSn&gt;
          &lt;certPin&gt;5244&lt;/certPin&gt;
          &lt;description&gt;Кингс Табако BGNCA00003003&lt;/description&gt;
      &lt;/ikunk&gt;
      &lt;controllers&gt;
          &lt;number&gt;1&lt;/number&gt;
          &lt;name&gt;PLC&lt;/name&gt;
          &lt;description&gt;FatekPLC&lt;/description&gt;
          &lt;templateCode&gt;1&lt;/templateCode&gt;
      &lt;/controllers&gt;
      &lt;tags&gt;
          &lt;templateEntryCode&gt;T_TN&lt;/templateEntryCode&gt;
          &lt;name&gt;Пореден номер на транзакцията&lt;/name&gt;
      &lt;/tags&gt;
  &lt;/skiu_x003A_ikunk&gt;
  </code></pre>
  
  <p>and when i read it into the tree view i get almost everything as expected except for the attributes of every tag !</p>
  
  <p>My question is how can i make the attributes show in their respective nodes , but withing brackets (), like this : n-th node text (n-th attribute text) </p>
  
  <p>here is my reading of the code : </p>
  
  <pre><code>XmlDataDocument xmldoc = new XmlDataDocument();
                  XmlNode xmlnode;
                  FileStream fs = new FileStream(ofdXML.FileName, FileMode.Open, FileAccess.Read);
                  xmldoc.Load(fs);
                  xmlnode = xmldoc.ChildNodes[1];
                  treeView1.Nodes.Clear();
                  treeView1.Nodes.Add(new TreeNode(xmldoc.DocumentElement.Name));
                  TreeNode tNode;
                  tNode = treeView1.Nodes[0];
                  AddNode(xmlnode, tNode);
  </code></pre>
  
  <p>and the code to AddNode : </p>
  
  <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];
                      inTreeNode.Nodes.Add(new TreeNode(xNode.Name));
                      tNode = inTreeNode.Nodes[i];
                      AddNode(xNode, tNode);
                  }
              }
              else
              {
                  inTreeNode.Text = inXmlNode.InnerText.ToString();
              }
          }
  </code></pre>
  
  <p>any help would be greatly appreciated :)</p>