更新时间:2022-12-20 11:36:07
HtmlDocument doc = new HtmlDocument();
doc.Load("SomePathToAHTMLDocumentHere");
HtmlNode docNode = doc.DocumentNode;
HtmlNodeCollection nodes = docNode.SelectNodes("//input"); //SelectNodes takes a XPath expression
foreach(HtmlNode node in nodes)
{
String id = node.GetAttributeValue("id"); // Fetch id of HTML element
String name = node.GetAttributeValue("name"); // Fetch parameter name (GET/POST)
String type = node.GetAttributeValue("type"); // Fetch type of input element
// Do your processing now
}
转到下载站点并获取CHM文件.这样对您有帮助.
干杯!
--MRB
Go to the download site and fetch the CHM file. That will help you.
Cheers!
--MRB