Previous Next

VERSION attribute
Determines the value of the version string in the XML declaration of a SAX-writer object.
Data type:
Access:
Applies to:
You can set the attribute to the value of the version string in the XML declaration. The default value is "1.0". For example:
 
<?xml version="1.0" encoding="UTF-8"?>
You can read this attribute at all times, but you can only write to it when the WRITE-STATUS is either SAX-WRITE-IDLE or SAX-WRITE-COMPLETE. That is, it can only be changed when the writer is not writing, otherwise it fails and generates an error message.
If STRICT is TRUE, the only valid version is "1.0", and the VERSION attribute cannot be changed or you get an error message. If STRICT is FALSE, the version in the prolog of the XML document will match the value of the VERSION attribute.
If the value is an empty string (""), then the version string will not appear in the XML declaration.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.