title: HtmlAgilityPack GetElementby Name
body: <p>I using  HtmlAgilityPack </p>
  
  <pre><code>  HtmlAgilityPack.HtmlDocument DocToParse = new HtmlAgilityPack.HtmlDocument();
    DocToParse.LoadHtml(HtmlIn);
    HtmlAgilityPack.HtmlNode InputNode = DocToParse.GetElementbyId(IDToGet)
  </code></pre>
  
  <p>This works fine for  element that have Id like</p>
  
  <pre><code>&lt;input type="hidden" id="nsv" value="y"&gt;
  </code></pre>
  
  <p>But elements that i need dont have Id only name</p>
  
  <pre><code>&lt;input type="hidden" name="Pass" value="106402333"&gt;
  &lt;input type="hidden" name="User" value="145"&gt;
  </code></pre>
  
  <p>sow i can't use     </p>
  
  <pre><code>HtmlAgilityPack.HtmlNode InputNode = DocToParse.GetElementbyId(IDToGet)
  </code></pre>
  
  <p>and there is no method GetElementbyName,sow any one know how i can get element by Name?</p>