Functions
The following functions come with xmlsh. Those in the "Core" set are in the main (unnamed) namespace and can be used without an import statement.
Other functions are available only after importing the corresponding module.
Functions are invoked using the Function Call Syntax
Function | Set | Description |
---|---|---|
jnew | Core | Creates a Java Object |
quote | Core | Concatenate all arguements as a single string and quote it |
QName | Core | Creates a QName |
xs:integer | XS | Casts argument as an xs:integer |
xs:string | XS | Casts argument as an xs:string |
xs:attribute | XS | Create an attribute node |
xs:element | XS | Create an element node |
xs:document | XS | Create a document node |
stax:closeReader | StAX | Closes a StAX Reader |
stax:getAttribute | StAX | Gets an attribute value from a StAX START_ELEMENT Event |
stax:getData | StAX | Gets the Data of a StAX Event |
stax:getEventType | StAX | Gets event type of a StAX Event |
stax:getName | StAX | Gets name of a StAX Event as a QName |
stax:getNamespace | StAX | Gets namespace URI of a StAX Event as a String |
stax:hasNext | StAX | Advances the StAX Stream to the next matching event |
stax:nextEvent | StAX | Returns the next event |
stax:newEventReader | StAX | Creates a new XMLEventReader object |
json:boolean | JSON | Creates a JSON boolean value |
json:null | JSON | Creates a JSON null value |
json:array | JSON | Creates a JSON value |
json:json | JSON | Creates a JSON object or array from a string |
json:object | JSON | Creates a JSON object |
json:number | JSON | Creates a JSON number |
json:path | JSON | Evaluates a JsonPath on a JSON object |
json:string | JSON | Creates a JSON string |
json:value | JSON | Creates a JSON value |
See Also XS Functions
See Also StAX Functions
See Also JSON Functions
See Also Commands
See Also Java Objects