Class XmlAgilityHelper
- Namespace
- SunamoHtml
- Assembly
- SunamoHtml.dll
Wrapper class for HtmlAgilityHelper methods for XML manipulation. Every method which is needed from HtmlAgilityHelper should have the same header and call from HtmlAgilityHelper. Note: This class does not inherit from HtmlAgilityHelper by design.
public static class XmlAgilityHelper
- Inheritance
-
XmlAgilityHelper
- Inherited Members
Methods
Node(HtmlNode, bool, string)
Finds a single HTML node with the specified tag.
public static HtmlNode? Node(HtmlNode node, bool isRecursive, string tag)
Parameters
nodeHtmlNodeThe parent node to search within.
isRecursiveboolWhether to search recursively through child nodes.
tagstringThe tag name to search for.
Returns
- HtmlNode
The found HTML node, or null if not found.
Nodes(HtmlNode, bool, string)
Finds all HTML nodes with the specified tag.
public static IList<HtmlNode> Nodes(HtmlNode node, bool isRecursive, string tag)
Parameters
nodeHtmlNodeThe parent node to search within.
isRecursiveboolWhether to search recursively through child nodes.
tagstringThe tag name to search for.