fn:parse-xml
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(*))
Arguments | |||
| $arg | xs:string? | The lexical XML string to be parsed as a document |
Result | document-node(element(*)) |
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.0 Functions and Operators
XPath 3.1 Functions and Operators
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.