Revision [1885]
This is an old revision of Functions made by DavidLee on 2013-02-08 18:37:15.
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 |
integer | XS | Casts argument as an xs:integer |
string | XS | Casts argument as an xs:string |
attribute | XS | Create an attribute node |
element | XS | Create an element node |
document | XS | Create a document node |
closeReader | StAX | Closes a StAX Reader |
getAttribute | StAX | Gets an attribute value from a StAX START_ELEMENT Event |
getData | StAX | Gets the Data of a StAX Event |
getEventType | StAX | Gets event type of a StAX Event |
getName | StAX | Gets name of a StAX Event as a QName |
getNamespace | StAX | Gets namespace URI of a StAX Event as a String |
hasNext | StAX | Advances the StAX Stream to the next matching event |
nextEvent | StAX | Returns the next event |
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 Commands
See Also Java Objects