fn:json-to-xml

Parses a string supplied in the form of a JSON text, returning the results in the form of an XML document node.

json-to-xml($json-text as xs:string?) ➔ document-node()

Arguments

 

$json-text

xs:string?

The input JSON-text

Result

document-node()

json-to-xml($json-text as xs:string?, $options as map(*)) ➔ document-node()

Arguments

 

$json-text

xs:string?

The input JSON-text

 

$options

map(*)

Used to control the way in which parsing takes place

Result

document-node()

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XSLT 3.0 Specification