skip to main content

Internal Objects : XMLStream Class (com.iscobol.rts.XMLStream) : writeToPrintWriter

writeToPrintWriter
Puts the content of the data item associated with an XMLStream object into a PrintWriter object.
General format
void writeToPrintWriter ( Xml-Destination )
Syntax rules
1.
Xml-Destination is an object reference to java.io.PrintWriter.
General rules
1.
 
NOTE - If the number of occurrences of an XML fields is not known at the time the program is written, specifying the DYNAMIC phrase of the OCCURS clause is recommended.
2.
The XMLStream write method will indent the output according to the value of the property iscobol.xmlstream.indent_number. The default is -1 which disables indentation. For example, to indent each level 2 columns set this property as follows:
3.
To omit empty elements from the XML output, set the property iscobol.xmlstream.omit_empty_elements (boolean) to true. The default value of this property is false, that means empty elements are generated.
Code example
configuration section.
    class xmlStream  as "com.iscobol.rts.XMLStream"
working-storage section.
77 objXmlStream object reference xmlStream.
procedure division.
objXmlStream:>writeToPrintWriter(objXmlStream:>getPrintWriter)

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left