|{{Func|html:doc|$uri as xs:string?|document-node()?}}<br />{{Func|html:doc|$uri as xs:string?, $options as map(*)?|document-node()?}}<br />
|-valign="top"
| '''Summary'''
|Fetches the HTML document referred to by the given {{Code|$uri}}, converts it to XML and returns a document node. The {{Code|$options}} argument can be used to set [[Parsers#Options|TagSoup Options]].
|-valign="top"
| '''Errors'''
|{{Error|parse|#Errors}} the input cannot be converted to XML.
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|html:parse|$input as xs:anyAtomicType|document-node()}}<br />{{Func|html:parse|$input as xs:anyAtomicType, $options as map(*)?|document-node()}}<br />
|-valign="top"
| '''Summary'''
|Converts the HTML document specified by {{Code|$input}} to XML and returns a document node:<br/>
The {{Code|$options}} argument can be used to set [[Parsers#Options|TagSoup Options]].
|-valign="top"
| '''Errors'''
|{{Error|parse|#Errors}} the input cannot be converted to XML.
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Code|'''html:parser'''() as xs:string}}<br />
|-valign="top"
| '''Summary'''
|Returns the name of the applied HTML parser (currently: {{Code|TagSoup}}). If an ''empty string'' is returned, TagSoup was not found in the classpath, and the input will be treated as well-formed XML.<br />