Revision [1608]
This is an old revision of FunctionStAXnewEventReader made by DavidLee on 2010-12-03 07:44:13.
Function newEventReader
This function is part of the StAX support.
Name
newEventReader creates a new StAX XMLEventReader ObjectSynopsis
newEventReader( [ uri ] )Description
newEventReader creates an instance of a StAX XMLEventReader object initialized to read from the standard input port, or if supplied, any URI (filename, http etc).
The result object should be stored in a variable for use by other StAX Functions.
This object is actually a real instance of the XMLEventReader interface, and you can use the Java Objects method call syntax to access it,
it is easier and more efficient to use the functions in the StAX Functions which provide a higher level interface.
To use the StAX fuunctions 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.
Example
import commands stax=stax reader=stax:newEventReader( file.xml )
Commands
StAX Functions
Java Objects