Пример #1
0
 /// <summary>
 /// GetNodesByParams
 /// </summary>
 /// <param name="htmlNode">Agility node</param>
 /// <param name="htmlTag">HTML tag name by Tag enum</param>
 /// <param name="htmlAttribute">HTML attribute name by Attribute enum</param>
 /// <param name="attributeValue">attribute value</param>
 /// <returns></returns>
 public static HtmlNodeCollection GetNodesByParams(HtmlNode htmlNode, HtmlTag htmlTag, HtmlAttribute htmlAttribute, string attributeValue)
 {
     return(GetNodesByParams(htmlNode, htmlTag.ToString(), htmlAttribute.ToString().Replace("_", ""), attributeValue));
 }
Пример #2
0
 /// <summary>
 /// GetNodeByParamsUseXpathEndsWith
 /// </summary>
 /// <param name="htmlNode"></param>
 /// <param name="htmlTag"></param>
 /// <param name="htmlAttribute"></param>
 /// <param name="attributeValue"></param>
 /// <returns></returns>
 public static HtmlNode GetNodeByParamsUseXpathEndsWith(HtmlNode htmlNode, HtmlTag htmlTag, HtmlAttribute htmlAttribute, string attributeValue)
 {
     return(GetNodeByParamsUseXpathEndsWith(htmlNode, htmlTag.ToString(), htmlAttribute.ToString().Replace("_", ""), attributeValue));
 }