C# Parsing hidden fields with the HTML Agility Pack -


I have to write an application for a friend site that parses the hidden areas. I've downloaded the HTML Agility Pack Library, but I'm a bit confused because there are not really any examples. The HTML field looks like this:

  & lt; Input type = "hidden" autocomplete = "off" value = "random" name = "foo" & gt;  

How do I get value from this field?

From memory, something like:

  var value = docroot SelectSingleNode ("// input [@ type = 'hidden' and @ name = 'foo']"). [. Value "] value;  

Comments