XQuery Function Documentation

Search and Browse

xml-to-json

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

Converts an XML tree (in w3c 'XML Representation of JSON' format) into a string conforming to the JSON grammar. Basic string (un)escaping.

Parameters:
$node?The input node
Returns:
xs:string? : The JSON representation of the input node

Detailed Description