you can get it in .Attributes
collection:
var doc = new HtmlAgilityPack.HtmlDocument();
doc.Load("file.html");
var node = doc.DocumentNode.SelectNodes("//input") [0];
var val = node.Attributes["value"].Value; //10743
More Related Contents:
- Selecting attribute values with html Agility Pack
- SelectNodes with XPath ignoring cases
- How to use HTML Agility pack
- Using Xpath With Default Namespace in C#
- HTML Agility pack – parsing tables
- Xml-SelectNodes with default-namespace via XmlNamespaceManager not working as expected
- Apostrophe (‘) in XPath query
- Get the XPath to an XElement?
- HTML Agility Pack strip tags NOT IN whitelist
- how to use XPath with XDocument?
- Create XML Nodes based on XPath?
- HtmlAgilityPack — Does close itself for some reason?
- Grab all text from html with Html Agility Pack
- XPATHS and Default Namespaces
- Parsing HTML page with HtmlAgilityPack
- HTML agility pack – removing unwanted tags without removing content?
- htmlagilitypack – remove script and style?
- Encoding XPath Expressions with both single and double quotes
- htmlagilitypack and dynamic content issue
- How can I use HTML Agility Pack to retrieve all the images from a website?
- How to fix ill-formed HTML with HTML Agility Pack?
- How to use XPath function in a XPathExpression instance programatically?
- SelectSingleNode returning null for known good xml node path using XPath
- Case insensitive XML parser in c#
- How to get img/src or a/hrefs using Html Agility Pack?
- Parsing HTML Table in C#
- ItextSharp Error on trying to parse html for pdf conversion
- How to click on the radio button through the element ID attribute using Selenium and C#
- Parsing HTML to get script variable value
- XPathSelectElement always returns null