# HtmlDocument

Namespace: FSharp.Data

Module with operations on HTML documents

### Functions and values

 Function or value Description  body x  Signature: x:HtmlDocument -> HtmlNode Finds the body element of the given document, this throws an exception if no body element exists. Parameters: * x - The given document  descendants recurseOnMatch predicate doc  Signature: recurseOnMatch:bool -> predicate:(HtmlNode -> bool) -> doc:HtmlDocument -> seq Gets all of the descendants of this document that statisfy the given predicate Parameters: recurseOnMatch - If a match is found continues down the tree matching child elements predicate - The predicate by which to match the nodes to return * doc - The given document  descendantsNamed (...)  Signature: recurseOnMatch:bool -> names:seq -> doc:HtmlDocument -> seq Finds all of the descendant nodes of this document that match the given set of names Parameters: recurseOnMatch - If a match is found continues down the tree matching child elements names - The set of names to match * doc - The given document  descendantsNamedWithPath (...)  Signature: recurseOnMatch:bool -> names:seq -> doc:HtmlDocument -> seq Finds all of the descendant nodes of this document that match the given set of names Parameters: recurseOnMatch - If a match is found continues down the tree matching child elements names - The set of names to match * doc - The given document  descendantsWithPath (...)  Signature: recurseOnMatch:bool -> predicate:(HtmlNode -> bool) -> doc:HtmlDocument -> seq Gets all of the descendants of this document that statisfy the given predicate Parameters: recurseOnMatch - If a match is found continues down the tree matching child elements predicate - The predicate by which to match the nodes to return * doc - The given document  docType doc  Signature: doc:HtmlDocument -> string Returns the doctype of the document  elements doc  Signature: doc:HtmlDocument -> HtmlNode list  elementsNamed names doc  Signature: names:seq -> doc:HtmlDocument -> HtmlNode list Returns all of the root elements of the document that match the set of names Parameters: names - The set of names to match doc - The given document  html x  Signature: x:HtmlDocument -> HtmlNode Finds the html element of the given document, this throws an exception if no html element exists. Parameters: * x - The given document  tryGetBody x  Signature: x:HtmlDocument -> HtmlNode option Tries to find the body element of the given document. Parameters: * x - The given document  tryGetHtml x  Signature: x:HtmlDocument -> HtmlNode option Tries to find the html element of the given document. Parameters: * x - The given document