Revision [1612]

This is an old revision of FunctionsStAX made by DavidLee on 2010-12-03 07:45:36.

 

StAX Functions



The following functions are built in to xmlsh, but need to be imported. They are not imported by default because of possible name collisions using these functions with no prefix.

These functions provide a scripting interface to the StAX streaming XML API.


Importing

To use the StAX commands you need to import them into either the global namespace or a local namespace.
Its recommended that you use a local namespace so that there is less chance of name collisions.

To import into the stax namespace prefix
import commands stax=stax


To import into the global namespace
import commands stax



Functions are invoked using the Function Call Syntax

FunctionDescription
closeReaderCloses a StAX Reader
getAttributeGets an attribute value from a StAXSTART_ELEMENT Event
getDataGets the Data of a StAX Event
getEventTypeGets event type of a StAXEvent
getNameGets name of a StAXEvent as a QName
getNamespaceGets namespace URI of a StAXEvent as a String
hasNextAdvances the StAXStream to the next matching event
nextEventReturns the next event
newEventReaderCreates a new XMLEventReader object




See Also Functions
See Also XS Functions
See Also Commands
See Also Java Objects
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki