Revision [1629]
This is an old revision of Functions made by DavidLee on 2010-12-07 06:18:26.
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 |
See Also XS Functions
See Also StAX Functions
See Also Commands
See Also Java Objects