Change values in the WRITER-STATUS attribute example
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Here is a code snippet (just the writer methods) that
demonstrates the way the WRITER-STATUS changes:
|
If STRICT is set to FALSE then
calling a method while in the wrong state does not affect the XML
document or the status of the writer. The method does not fail,
the writer writes out the data, and the WRITE-STATUS is
set accordingly. WRITE-STATUS is only set to SAX-WRITE-ERROR if
there is a problem with the destination or proxml library
at START-DOCUMENT.
If STRICT is set to TRUE then
each of these invalid cases returns FALSE and an
error message is generated:
|
In this case, the stream is closed and the WRITE-STATUS is
change to SAX-WRITE-ERROR.
If there is a problem with the output destination or the proxml
library, the WRITE-STATUS is set to SAX-WRITE-ERROR regardless
of the setting of STRICT. One of the following
error messages is generated:
Or. . . |