code: public XMLDocument startDocument() throws SAXException{
          nsSupport.reset();
          attrs.clear();
          elemStack.clear();
          elem = null;
          depth = 0;
          nsSupport.pushContext();
  
          xml.startDocument();
          mark();
          return this;
      }
docs: /*-------------------------------------------------[ Document ]---------------------------------------------------