title: How do I get one level down from XDocument.Root?
body: <p>For example, from root (PBC) i want to return one level down (PBCVersion, ProjectName, ProjectVersion, Targets, Packages) but instead, with: </p>
  
  <pre><code>foreach (XElement x in oPbcXDocument.Root.Elements())
  {
      Console.WriteLine(x.Value);
  }
  </code></pre>
  
  <p>i'm returning:</p>
  
  <pre><code>PBC
  1
  dfcs
  1102
  RCM565bas_build.bat RCM565scm-00110binlogWINSIMbas_build.bat SIMscm-00110binlog
  bas_package.batscm-00110PackageoutlogDFCS1102RCM565LastSuccessfulComponentsDFCS1102WINSIMLastSuccessfulComponents2
  </code></pre>
  
  <p>here is the XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PBC&gt;
    &lt;PBCVersion&gt;1&lt;/PBCVersion&gt;
    &lt;ProjectName&gt;dfcs&lt;/ProjectName&gt;
    &lt;ProjectVersion&gt;1102&lt;/ProjectVersion&gt;
    &lt;Targets&gt;
      &lt;Target&gt;
        &lt;TargetName&gt;RCM565&lt;/TargetName&gt;
        &lt;CommandLine&gt;bas_build.bat RCM565&lt;/CommandLine&gt;
        &lt;BuildEnvTypeName&gt;scm-00110&lt;/BuildEnvTypeName&gt;
        &lt;RelativeOutputPath&gt;bin&lt;/RelativeOutputPath&gt;
        &lt;RelativeLogPath&gt;log&lt;/RelativeLogPath&gt;
        &lt;Dependencies/&gt;
      &lt;/Target&gt;
      &lt;Target&gt;
        &lt;TargetName&gt;WINSIM&lt;/TargetName&gt;
        &lt;CommandLine&gt;bas_build.bat SIM&lt;/CommandLine&gt;
        &lt;BuildEnvTypeName&gt;scm-00110&lt;/BuildEnvTypeName&gt;
        &lt;RelativeOutputPath&gt;bin&lt;/RelativeOutputPath&gt;
        &lt;RelativeLogPath&gt;log&lt;/RelativeLogPath&gt;
        &lt;Dependencies/&gt;
      &lt;/Target&gt;
    &lt;/Targets&gt;
    &lt;Packages&gt;
      &lt;Package&gt;
        &lt;CommandLine&gt;bas_package.bat&lt;/CommandLine&gt; 
        &lt;BuildEnvTypeName&gt;scm-00110&lt;/BuildEnvTypeName&gt; 
        &lt;PackageName&gt;Package&lt;/PackageName&gt; 
        &lt;RelativeOutputPath&gt;out&lt;/RelativeOutputPath&gt; 
        &lt;RelativeLogPath&gt;log&lt;/RelativeLogPath&gt; 
        &lt;Dependencies&gt;
          &lt;BuildDependency&gt;
            &lt;ProjectName&gt;DFCS&lt;/ProjectName&gt;
            &lt;ProjectVersion&gt;1102&lt;/ProjectVersion&gt;
            &lt;TargetName&gt;RCM565&lt;/TargetName&gt;
            &lt;ProjectBuild&gt;LastSuccessful&lt;/ProjectBuild&gt; 
            &lt;RelativeSandboxPath&gt;Components&lt;/RelativeSandboxPath&gt; 
          &lt;/BuildDependency&gt;
          &lt;BuildDependency&gt;
            &lt;ProjectName&gt;DFCS&lt;/ProjectName&gt;
            &lt;ProjectVersion&gt;1102&lt;/ProjectVersion&gt;
            &lt;TargetName&gt;WINSIM&lt;/TargetName&gt;
            &lt;ProjectBuild&gt;LastSuccessful&lt;/ProjectBuild&gt; 
            &lt;RelativeSandboxPath&gt;Components2&lt;/RelativeSandboxPath&gt; 
          &lt;/BuildDependency&gt;
        &lt;/Dependencies&gt;
      &lt;/Package&gt;
    &lt;/Packages&gt;
  &lt;/PBC&gt;
  </code></pre>
  
  <p>How would I be able to return one level down ONLY?</p>