Quote Originally Posted by Pale View Post
I don't need to find just "value" i need to find a value that has only numbers in it.

and i know for a fact that there will only be one value= with 100% numbers after it.
I fail to see how that is relevant. When I say "value", I mean an attribute named "value" and its corresponding...value. You said yourself that you need to handle other types of attributes and tags, so why only program for each individual case when you can simply create a routine that returns attribute:

Code:
HtmlDocument myDoc = new HtmlDocument( myHtmlSource);
int value = Int32.Parse( myDoc.Nodes( "input" ).GetAttribute( "value" ) );
Nicer, eh? Now the parsing is confined to the HtmlDocument class and is reusable anywhere in code and also can do more than one thing.