code: public void startDocument() {
      if (encoding != null) {
        write(writer, "<?xml version=\"1.0\" encoding=\"");
        write(writer, encoding);
        write(writer, "\" standalone=\"yes\"?>" + NL);
      }
      level = 0;
    }
docs: --------------------------------------------------------------------------