F# Data


HtmlDocumentExtensions

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

Extension methods with operations on HTML documents

Static members

Static memberDescription
HtmlDocumentExtensions.Body(doc)
Signature: doc:HtmlDocument -> HtmlNode
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.Descendants(...)
Signature: (doc:HtmlDocument * name:string) -> seq<HtmlNode>
Attributes:
[<Extension>]

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

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

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

HtmlDocumentExtensions.Descendants(...)
Signature: (doc:HtmlDocument * names:seq<string>) -> seq<HtmlNode>
Attributes:
[<Extension>]

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

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

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

HtmlDocumentExtensions.Descendants(doc)
Signature: doc:HtmlDocument -> seq<HtmlNode>
Attributes:
[<Extension>]

Gets all of the descendants of this document Recurses on match

HtmlDocumentExtensions.Descendants(...)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool)) -> seq<HtmlNode>
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.Descendants(...)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool) * recurseOnMatch:bool) -> seq<HtmlNode>
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.DescendantsWithPath(...)
Signature: (doc:HtmlDocument * name:string) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

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

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

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

HtmlDocumentExtensions.DescendantsWithPath(...)
Signature: (doc:HtmlDocument * names:seq<string>) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

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

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

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

HtmlDocumentExtensions.DescendantsWithPath(...)
Signature: doc:HtmlDocument -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

Gets all of the descendants of this document Recurses on match

HtmlDocumentExtensions.DescendantsWithPath(...)
Signature: (doc:HtmlDocument * predicate:(HtmlNode -> bool)) -> seq<HtmlNode * HtmlNode list>
Attributes:
[<Extension>]

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

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

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

HtmlDocumentExtensions.Elements(...)
Signature: (doc:HtmlDocument * name:string) -> HtmlNode list
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.Elements(...)
Signature: (doc:HtmlDocument * names:seq<string>) -> HtmlNode list
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.Elements(doc)
Signature: doc:HtmlDocument -> HtmlNode list
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.Html(doc)
Signature: doc:HtmlDocument -> HtmlNode
Attributes:
[<Extension>]

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

HtmlDocumentExtensions.TryGetBody(doc)
Signature: doc:HtmlDocument -> HtmlNode option
Attributes:
[<Extension>]

Tries to find the body element of the given document.

HtmlDocumentExtensions.TryGetHtml(doc)
Signature: doc:HtmlDocument -> HtmlNode option
Attributes:
[<Extension>]

Tries to find the html element of the given document.

Fork me on GitHub