F# Data


HtmlNodeExtensions

Namespace: FSharp.Data
Attributes:
[<Extension>]

Extension methods with operations on HTML nodes

Static members

Static memberDescription
HtmlNodeExtensions.Attribute(n, name)
Signature: (n:HtmlNode * name:string) -> HtmlAttribute
Attributes:
[<Extension>]

Returns the attribute with the given name. If the attribute does not exist then this will throw an exception Parameters: * name - The name of the attribute to select

HtmlNodeExtensions.Attributes(n)
Signature: n:HtmlNode -> HtmlAttribute list
Attributes:
[<Extension>]

Gets all of the attributes of this node

HtmlNodeExtensions.AttributeValue(...)
Signature: (n:HtmlNode * name:string) -> string
Attributes:
[<Extension>]

Return the value of the named attribute, or an empty string if not found. Parameters: * name - The name of the attribute to get the value from

HtmlNodeExtensions.Descendants(n, name)
Signature: (n:HtmlNode * name:string) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name Recurses on match Parameters: * name - The name by which to map the descendants

HtmlNodeExtensions.Descendants(...)
Signature: (n:HtmlNode * name:string * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name Parameters: name - The name by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.Descendants(n, names)
Signature: (n:HtmlNode * names:seq<string>) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names Recurses on match Parameters: * names - The set of names by which to map the descendants

HtmlNodeExtensions.Descendants(...)
Signature: (n:HtmlNode * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names Parameters: names - The set of names by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.Descendants(n)
Signature: n:HtmlNode -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node Recurses on match

HtmlNodeExtensions.Descendants(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool)) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate Recurses on match Parameters: * predicate - The predicate for which descendants to return

HtmlNodeExtensions.Descendants(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate Parameters: predicate - The predicate for which descendants to return recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * name:string) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name The current node is also considered in the comparison Recurses on match Parameters: * name - The name by which to map the descendants

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * name:string * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name The current node is also considered in the comparison Parameters: name - The name by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * names:seq<string>) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names The current node is also considered in the comparison Recurses on match Parameters: * names - The set of names by which to map the descendants

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names The current node is also considered in the comparison Parameters: names - The set of names by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelf(n)
Signature: n:HtmlNode -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node The current node is also considered in the comparison Recurses on match

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool)) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate The current node is also considered in the comparison Recurses on match Parameters: * predicate - The predicate for which descendants to return

HtmlNodeExtensions.DescendantsAndSelf(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate The current node is also considered in the comparison Parameters: predicate - The predicate for which descendants to return recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * name:string) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name The current node is also considered in the comparison Recurses on match Parameters: * name - The names by which to map the descendants

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * name:string * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name The current node is also considered in the comparison Parameters: name - The name by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * names:seq<string>) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names The current node is also considered in the comparison Recurses on match Parameters: * names - The set of names by which to map the descendants

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names The current node is also considered in the comparison Parameters: names - The set of names by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: n:HtmlNode -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node The current node is also considered in the comparison Recurses on match

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool)) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate The current node is also considered in the comparison Recurses on match Parameters: * predicate - The predicate for which descendants to return

HtmlNodeExtensions.DescendantsAndSelfWithPath(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate The current node is also considered in the comparison Parameters: predicate - The predicate for which descendants to return recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * name:string) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name Recurses on match Parameters: * name - The names by which to map the descendants

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * name:string * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given name Parameters: name - The name by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * names:seq<string>) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names Recurses on match Parameters: * names - The set of names by which to map the descendants

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node, which match the given set of names Parameters: names - The set of names by which to map the descendants recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: n:HtmlNode -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node Recurses on match

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool)) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate Recurses on match Parameters: * predicate - The predicate for which descendants to return

HtmlNodeExtensions.DescendantsWithPath(...)
Signature: (n:HtmlNode * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of the current node that satisfy the predicate Parameters: predicate - The predicate for which descendants to return recurseOnMatch - If a match is found continues down the tree matching child elements

HtmlNodeExtensions.DirectInnerText(n)
Signature: n:HtmlNode -> string
Attributes:
[<Extension>]

Returns the direct inner text of the current node

HtmlNodeExtensions.Elements(n, name)
Signature: (n:HtmlNode * name:string) -> HtmlNode list
Attributes:
[<Extension>]

Gets all of the elements of the current node, which match the given name Parameters: * names - The name by which to map the elements

HtmlNodeExtensions.Elements(n, names)
Signature: (n:HtmlNode * names:seq<string>) -> HtmlNode list
Attributes:
[<Extension>]

Gets all of the elements of the current node, which match the given set of names Parameters: * names - The set of names by which to map the elements

HtmlNodeExtensions.Elements(n)
Signature: n:HtmlNode -> HtmlNode list
Attributes:
[<Extension>]

Gets all of the nodes immediately under this node

HtmlNodeExtensions.HasAttribute(...)
Signature: (n:HtmlNode * name:string * value:string) -> bool
Attributes:
[<Extension>]

Returns true if the current node has an attribute that matches both the name and the value Parameters: name - The name of the attribute value - The value of the attribute

HtmlNodeExtensions.HasClass(n, cssClass)
Signature: (n:HtmlNode * cssClass:string) -> bool
Attributes:
[<Extension>]

Returns true if the current node has the specified class

HtmlNodeExtensions.HasId(n, id)
Signature: (n:HtmlNode * id:string) -> bool
Attributes:
[<Extension>]

Returns true if the current node has the specified id

HtmlNodeExtensions.HasName(n, name)
Signature: (n:HtmlNode * name:string) -> bool
Attributes:
[<Extension>]

Returns true if the current node has the specified name

HtmlNodeExtensions.InnerText(n)
Signature: n:HtmlNode -> string
Attributes:
[<Extension>]

Returns the inner text of the current node

HtmlNodeExtensions.Name(n)
Signature: n:HtmlNode -> string
Attributes:
[<Extension>]

Gets the given nodes name

HtmlNodeExtensions.TryGetAttribute(...)
Signature: (n:HtmlNode * name:string) -> HtmlAttribute option
Attributes:
[<Extension>]

Tries to select an attribute with the given name from the current node. Parameters: * name - The name of the attribute to select

Fork me on GitHub