This function takes as input an XML document represented as a string, and returns the document node at the root of an XDM tree representing the parsed document.
parse-xml($arg as xs:string?) ➔ document-node(element(*))
The lexical XML string to be parsed as a document
Links to W3C specifications
Notes on the Saxon implementation
Available since Saxon 9.3, provided XPath 3.0 is enabled; replaces the extension function
saxon:parse which is retained for the time being.