API Reference › Xml › Xml.parse
method

Xml.parse

Xml.parse(text: string) -> xml

Parses an XML document and returns its root element (or an empty node if there is none). Handles nested elements, single- and double-quoted attributes, text/<![CDATA[…]]> content, comments, the <?xml?> prolog and <!DOCTYPE>. Best-effort, not validating.

← All symbols