Revision [1719]
This is an old revision of FunctionStAXnewStreamWriter made by DavidLee on 2011-05-31 12:51:19.
Function newStreamWriter
This function is part of the StAX support.
Name
newStreamWriter creates a new StAX XMLStreamWriter ObjectSynopsis
newStreamWriter( [file] )Description
newStreamWritercreates an instance of a StAX XMLStreamWriter object initialized to write to the standard output port, or if supplied, a file.
The result object should be stored in a variable for use by other StAX Functions.
This object is actually a real instance of the XMLStreamWriter 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 functions 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