title: Find node by name by using Nokogiri
body: <p>Trying to find nodes by name. Here is my xml:</p>
  
  <pre><code>&lt;Project&gt;
   &lt;ItemGroup&gt;
      &lt;Compile Include="..\..\CommonAssemblyInfo.cs"&gt;
        &lt;Link&gt;Properties\CommonAssemblyInfo.cs&lt;/Link&gt;
      &lt;/Compile&gt;
      &lt;Compile Include="Global.asax.cs"&gt;
        &lt;DependentUpon&gt;Global.asax&lt;/DependentUpon&gt;
      &lt;/Compile&gt;
      &lt;Compile Include="Properties\AssemblyInfo.cs" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\myproject1.csproj"&gt;
        &lt;Name&gt;Myproject1&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\Myproject2.csproj"&gt;
        &lt;Name&gt;MyProject2&lt;/Name&gt;
      &lt;/ProjectReference&gt;
      &lt;ProjectReference Include="..\myproject3.csproj"&gt;
        &lt;Name&gt;MyProject3&lt;/Name&gt;
      &lt;/ProjectReference&gt;
   &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>Here is my code to get all Name nodes from above XML:</p>
  
  <pre><code>  f = File.open(projectpath)
    @doc = Nokogiri::XML(f)
    #print f.read
    names = @doc.xpath("Name")
    print names
  
    f.close  
  </code></pre>
  
  <p>My code got nothing from the XML search.</p>