Table of Contents

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

node HtmlNode

The parent node to search within.

isRecursive bool

Whether to search recursively through child nodes.

tag string

The 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

node HtmlNode

The parent node to search within.

isRecursive bool

Whether to search recursively through child nodes.

tag string

The tag name to search for.

Returns

IList<HtmlNode>

A list of found HTML nodes.