ID selector ("#id")

Selects a single element with the given id attribute.

   public IEnumerable<HtmlNode> SelectHtmlNodeById()
   { 
      var htmlDocument = new HtmlWeb().Load("http://www.example.com");
      return htmlDocument.Select("#id");
   }

Last edited Dec 25, 2011 at 8:22 AM by sweettam, version 2

Comments

No comments yet.