Wiki source for Functions
======Functions======
The following functions come with xmlsh. Those in the "Core" set are in the main (unnamed) namespace and can be used without an [[CommandImport import]] statement.
Other functions are available only after importing the corresponding module.
Functions are invoked using the [[SyntaxFunctionCall Function Call Syntax]]
|=|Function|=|Set|=|Description||
||[[FunctionJnew jnew]]||Core||Creates a [[JavaObjects Java Object]]||
||[[FunctionQuote quote]]||Core||Concatenate all arguements as a single string and quote it||
||[[FunctionQName QName]]||Core||Creates a QName||
|=| |=| |=| ||
||[[FunctionXSInteger integer]]||[[FunctionsXS XS]]||Casts argument as an xs:integer||
||[[FunctionXSString string]]||[[FunctionsXS XS]]||Casts argument as an xs:string||
||[[FunctionXSattribute attribute]]||[[FunctionsXS XS]]||Create an attribute node||
||[[FunctionXSelement element]]||[[FunctionsXS XS]]||Create an element node||
||[[FunctionXSdocument document]]||[[FunctionsXS XS]]||Create a document node||
|=| |=| |=| ||
||[[FunctionStAXcloseReader closeReader]]||[[FunctionsStAX StAX]]||Closes a StAX Reader||
||[[FunctionStAXgetAttribute getAttribute]]||[[FunctionsStAX StAX]]||Gets an attribute value from a StAX START_ELEMENT Event||
||[[FunctionStAXgetData getData]]||[[FunctionsStAX StAX]]||Gets the Data of a StAX Event||
||[[FunctionStAXgetEventType getEventType]]||[[FunctionsStAX StAX]]||Gets event type of a StAX Event||
||[[FunctionStAXgetName getName]]||[[FunctionsStAX StAX]]||Gets name of a StAX Event as a QName||
||[[FunctionStAXgetNamespace getNamespace]]||[[FunctionsStAX StAX]]||Gets namespace URI of a StAX Event as a String||
||[[FunctionStAXhasNext hasNext]]||[[FunctionsStAX StAX]]||Advances the StAX Stream to the next matching event||
||[[FunctionStAXnextEvent nextEvent]]||[[FunctionsStAX StAX]]||Returns the next event||
||[[FunctionStAXnewEventReader newEventReader]]||[[FunctionsStAX StAX]]||Creates a new XMLEventReader object||
----
See Also [[FunctionsXS XS Functions]]
See Also [[FunctionsStAX StAX Functions]]
See Also [[Commands]]
See Also [[JavaObjects Java Objects]]
The following functions come with xmlsh. Those in the "Core" set are in the main (unnamed) namespace and can be used without an [[CommandImport import]] statement.
Other functions are available only after importing the corresponding module.
Functions are invoked using the [[SyntaxFunctionCall Function Call Syntax]]
|=|Function|=|Set|=|Description||
||[[FunctionJnew jnew]]||Core||Creates a [[JavaObjects Java Object]]||
||[[FunctionQuote quote]]||Core||Concatenate all arguements as a single string and quote it||
||[[FunctionQName QName]]||Core||Creates a QName||
|=| |=| |=| ||
||[[FunctionXSInteger integer]]||[[FunctionsXS XS]]||Casts argument as an xs:integer||
||[[FunctionXSString string]]||[[FunctionsXS XS]]||Casts argument as an xs:string||
||[[FunctionXSattribute attribute]]||[[FunctionsXS XS]]||Create an attribute node||
||[[FunctionXSelement element]]||[[FunctionsXS XS]]||Create an element node||
||[[FunctionXSdocument document]]||[[FunctionsXS XS]]||Create a document node||
|=| |=| |=| ||
||[[FunctionStAXcloseReader closeReader]]||[[FunctionsStAX StAX]]||Closes a StAX Reader||
||[[FunctionStAXgetAttribute getAttribute]]||[[FunctionsStAX StAX]]||Gets an attribute value from a StAX START_ELEMENT Event||
||[[FunctionStAXgetData getData]]||[[FunctionsStAX StAX]]||Gets the Data of a StAX Event||
||[[FunctionStAXgetEventType getEventType]]||[[FunctionsStAX StAX]]||Gets event type of a StAX Event||
||[[FunctionStAXgetName getName]]||[[FunctionsStAX StAX]]||Gets name of a StAX Event as a QName||
||[[FunctionStAXgetNamespace getNamespace]]||[[FunctionsStAX StAX]]||Gets namespace URI of a StAX Event as a String||
||[[FunctionStAXhasNext hasNext]]||[[FunctionsStAX StAX]]||Advances the StAX Stream to the next matching event||
||[[FunctionStAXnextEvent nextEvent]]||[[FunctionsStAX StAX]]||Returns the next event||
||[[FunctionStAXnewEventReader newEventReader]]||[[FunctionsStAX StAX]]||Creates a new XMLEventReader object||
----
See Also [[FunctionsXS XS Functions]]
See Also [[FunctionsStAX StAX Functions]]
See Also [[Commands]]
See Also [[JavaObjects Java Objects]]