The StaxWriter class / xml.StaxWriter methods |
Writes an XML declaration to the StaxWriter stream.
startDocument( encoding STRING, version STRING, standalone INTEGER )
In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).
This call:
startDocument("utf-8","1.0",true)
Produces:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> dtd("note [<!ENTITY writer \"Donald Duck.\">]")