code: function Document(version, encoding) {
      version = version || '1.0';
      var doc = new bindings.Document(version);
      doc.encoding(encoding || 'utf8');
      return doc;
  }
docs: / Create a new document / @param {string} version xml version, default 1.0 / @param {string} encoding the encoding, default utf8 / @constructor