public class XMLToJsonFn extends SystemFunction
This exploits the stylesheets xml-to-json.xsl and xml-to-json-indent.xsl, to perform the actual conversion. These are held as resources within the Saxon jar and compiled when needed.
Constructor and Description |
---|
XMLToJsonFn() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Invoke the function
|
static MapItem |
checkOptions(MapItem map,
XPathContext context) |
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public static MapItem checkOptions(MapItem map, XPathContext context) throws XPathException
XPathException
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
Function
context
- the XPath dynamic evaluation contextarguments
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.