Changes

Jump to navigation Jump to search
3 bytes added ,  15:52, 9 March 2023
no edit summary
| width='120' | '''Signature'''
|<pre>html:doc(
$uri href as xs:string?,
$options as map(*)? := ()
) as document-node()?</pre>
|- valign="top"
| '''Summary'''
|Fetches the HTML document referred to by the given {{Code|$urihref}}, 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'''
| width='120' | '''Signature'''
|<pre>html:parse(
$input value as xs:anyAtomicType,
$options as map(*)? := ()
) as document-node()</pre>
|- valign="top"
| '''Summary'''
|Converts the HTML document specified by {{Code|$inputvalue}} to XML and returns a document node:<br/>
* The input may be of type {{Code|xs:string}}, {{Code|xs:base64Binary}}, or {{Code|xs:hexBinary}}.
* If the input is passed on in its binary representation, the HTML parser will try to choose the correct encoding automatically.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu