Class JsonToXMLFn

    • Constructor Detail

      • JsonToXMLFn

        public JsonToXMLFn()
    • Method Detail

      • call

        public Sequence call​(XPathContext context,
                             Sequence[] arguments)
                      throws XPathException
        Evaluate the expression
        Parameters:
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as SequenceIterators
        Returns:
        the result of the evaluation, in the form of a SequenceIterator
        Throws:
        XPathException - if a dynamic error occurs during the evaluation of the expression
      • eval

        protected Item eval​(java.lang.String input,
                            MapItem options,
                            XPathContext context)
                     throws XPathException
        Parse the JSON string according to supplied options
        Parameters:
        input - JSON input string
        options - options for the conversion as a map of xs:string : value pairs
        context - XPath evaluation context
        Returns:
        the result of the parsing, as an XML element
        Throws:
        XPathException - if the syntax of the input is incorrect