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 with the appropriate error number.
startDocument("utf-8","1.0",true)produces
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> dtd("note [<!ENTITY writer \"Donald Duck.\">]")