code: public void startDocument(String encoding, Boolean standalone) throws IOException {
  		@SuppressWarnings("unused")
  		char apos = attributeUseApostrophe ? '\'' : '"';
  		if (attributeUseApostrophe) {
  			out.write("<?xml version='1.0'");
  		} else {
  			out.write("<?xml version=\"1.0\"");
  		}
  		if (encoding != null) {
  			out.write(" encoding=");
  			out.write(attributeUseApostrophe ? '\'' : '"');
  			out.write(encoding);
  			out.write(attributeUseApostrophe ? '\'' : '"');
  			// out.write('\'');
  		}
  		if (standalone != null) {
  			out.write(" standalone=");
  			out.write(attributeUseApostrophe ? '\'' : '"');
  			if (standalone.booleanValue()) {
  				out.write("yes");
  			} else {
  				out.write("no");
  			}
  			out.write(attributeUseApostrophe ? '\'' : '"');
  			// if(standalone.booleanValue()) {
  			// out.write(" standalone='yes'");
  			// } else {
  			// out.write(" standalone='no'");
  			// }
  		}
  		out.write("?>");
  	}
docs: Start document.
  
  @param encoding the encoding
  @param standalone the standalone
  @throws IOException Signals that an I/O exception has occurred.