<pre lang='xquery'>
html:parse("<html>")
</syntaxhighlightpre>
;Result:
<syntaxhighlight lang="xml">
<html xmlns="http://www.w3.org/1999/xhtml"/>
</syntaxhighlightpre>
===Specifying Options===
<pre lang='xquery'>
html:parse("<a href='ok.html'/>", map { 'nons': false() })
</syntaxhighlightpre>
;Result:
</body>
</html>
</syntaxhighlightpre>
===Parsing Binary Input===
<pre lang='xquery'>
html:parse(fetch:binary("https://en.wikipedia.org"))
</syntaxhighlightpre>
;Result:
<meta charset="UTF-8"/>
...
</syntaxhighlightpre>
=Errors=