skip to main content

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

readFromStream
Reads an XML stream and puts its content in the data item associated with the XMLStream object.
General format
void readFromStream ( Xml-Source )
Syntax rules
1.
Xml-Source is an object reference to java.io.InputStream.
General rules
1.
When the read method is invoked, the whole content of Xml-Source is read and the data item associated with the XMLStream object is updated.
 
NOTE - If the number of occurrences of an XML field is not known at the time the program is written, specifying the DYNAMIC phrase of the OCCURS clause in the data item associated with the XMLStream object is recommended.
Code example
configuration section.
    class xmlStream  as "com.iscobol.rts.XMLStream"
    class inpStream  as "java.io.InputStream"
working-storage section.
77 objXmlStream object reference xmlStream.
77 objInpStream object reference inpStream.
procedure division.
objXmlStream:>readFromStream(objInpStream)

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