F# Data


HtmlDocumentExtensions

Namespace: FSharp.Data

Extension methods with operations on HTML documents

Static members

Static memberDescription
Body(doc)
Signature: doc:HtmlDocument -> HtmlNode

Finds the body element of the given document, this throws an exception if no body element exists.

Descendants(doc, name)
Signature: (doc:HtmlDocument * name:string) -> seq<HtmlNode>

Finds all of the descendant nodes of this document that match the given name Recurses on match Parameters: * names - The name to match

Descendants(doc, name, recurseOnMatch)
Signature: (doc:HtmlDocument * name:string * recurseOnMatch:bool) -> seq<HtmlNode>

Finds all of the descendant nodes of this document that match the given name Parameters: name - The name to match recurseOnMatch - If a match is found continues down the tree matching child elements

Descendants(doc, names)
Signature: (doc:HtmlDocument * names:seq<string>) -> seq<HtmlNode>

Finds all of the descendant nodes of this document that match the given set of names Recurses on match Parameters: * names - The set of names to match

Descendants(doc, names, recurseOnMatch)
Signature: (doc:HtmlDocument * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode>

Finds all of the descendant nodes of this document that match the given set of names Parameters: names - The set of names to match recurseOnMatch - If a match is found continues down the tree matching child elements

Descendants(doc)
Signature: doc:HtmlDocument -> seq<HtmlNode>

Gets all of the descendants of this document Recurses on match

Descendants(doc, predicate)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool)) -> seq<HtmlNode>

Gets all of the descendants of this document that statisfy the given predicate Recurses on match Parameters: * predicate - The predicate by which to match the nodes to return

Descendants(...)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode>

Gets all of the descendants of this document that statisfy the given predicate Parameters: predicate - The predicate by which to match the nodes to return recurseOnMatch - If a match is found continues down the tree matching child elements

DescendantsWithPath(doc, name)
Signature: (doc:HtmlDocument * name:string) -> seq<HtmlNode * HtmlNode list>

Finds all of the descendant nodes of this document that match the given name Recurses on match Parameters: * name - The name to match

DescendantsWithPath(...)
Signature: (doc:HtmlDocument * name:string * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>

Finds all of the descendant nodes of this document that match the given name Parameters: name - The name to match recurseOnMatch - If a match is found continues down the tree matching child elements

DescendantsWithPath(doc, names)
Signature: (doc:HtmlDocument * names:seq<string>) -> seq<HtmlNode * HtmlNode list>

Finds all of the descendant nodes of this document that match the given set of names Recurses on match Parameters: * names - The set of names to match

DescendantsWithPath(...)
Signature: (doc:HtmlDocument * names:seq<string> * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>

Finds all of the descendant nodes of this document that match the given set of names Parameters: names - The set of names to match recurseOnMatch - If a match is found continues down the tree matching child elements

DescendantsWithPath(doc)
Signature: doc:HtmlDocument -> seq<HtmlNode * HtmlNode list>

Gets all of the descendants of this document Recurses on match

DescendantsWithPath(doc, predicate)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool)) -> seq<HtmlNode * HtmlNode list>

Gets all of the descendants of this document that statisfy the given predicate Recurses on match Parameters: * predicate - The predicate by which to match the nodes to return

DescendantsWithPath(...)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode * HtmlNode list>

Gets all of the descendants of this document that statisfy the given predicate Parameters: predicate - The predicate by which to match the nodes to return recurseOnMatch - If a match is found continues down the tree matching child elements

Elements(doc, name)
Signature: (doc:HtmlDocument * name:string) -> HtmlNode list

Returns all of the root elements in the current document that match the name Parameters: * name - The name to match

Elements(doc, names)
Signature: (doc:HtmlDocument * names:seq<string>) -> HtmlNode list

Returns all of the root elements in the current document that match the set of names Parameters: * names - The set of names to match

Elements(doc)
Signature: doc:HtmlDocument -> HtmlNode list

Returns all of the root elements of the current document that match the given predicate Parameters: * predicate - The predicate used to match elements

TryGetBody(doc)
Signature: doc:HtmlDocument -> HtmlNode option

Tries to find the body element of the given document.

Fork me on GitHub