title: powershell v2 - get XML content, and expand all fields
body: <p>If I have the following xml:</p>
  
  <pre><code>&lt;staff&gt;
      &lt;employee&gt;
          &lt;Name&gt;Bob Smith&lt;/Name&gt;
          &lt;function&gt;management&lt;/function&gt;
          &lt;age&gt;39&lt;/age&gt;
          &lt;stuff&gt;
              &lt;data&gt;Some Data&lt;/data&gt;
          &lt;/stuff&gt;
      &lt;/employee&gt;
      &lt;employee&gt;
          &lt;Name&gt;Sam Jones&lt;/Name&gt;
          &lt;function&gt;security&lt;/function&gt;
          &lt;age&gt;24&lt;/age&gt;
          &lt;stuff&gt;
              &lt;data&gt;Some Other Data&lt;/data&gt;
          &lt;/stuff&gt;
      &lt;/employee&gt;
  &lt;/staff&gt;    
  </code></pre>
  
  <p>I can access this with:</p>
  
  <pre><code>$FilePath = "c:\test.xml"
  $XmlFiles = @()
  $Index = -1
  
  $xdoc = new-object System.Xml.XmlDocument
  $xdoc.load($FilePath)
  
  $xdoc.SelectNodes("//employee")
  </code></pre>
  
  <p>This returns all the information. 
  But for <code>&lt; stuff &gt;</code> it just says <code>stuff</code>, it doesn't expand it to show the content of the <code>&lt; data &gt;</code> field.</p>
  
  <p>How can I get it to show everything for each employee, including the <code>&lt; data &gt;</code> field?</p>