Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : END-DOCUMENT( ) method
 

END-DOCUMENT( ) method

Closes the XML document represented by a SAX-writer object.
Return type: LOGICAL
Applies to: SAX-writer object handle

Syntax

END-DOCUMENT( )
Closes the XML stream. This is the logical conclusion of creating the XML document.
If you call this method before the START-DOCUMENT method, the method fails. WRITE-STATUS must not be SAX-WRITE-IDLE or SAX-WRITE-COMPLETE when you call this method. END-DOCUMENT changes WRITE-STATUS to SAX-WRITE-COMPLETE.
If the STRICT attribute is TRUE and the final tag has not been closed (that is, the root node), then this method fails.

See also

START-DOCUMENT( ) method