code: final void initDocument(int documentNumber)
          {
                  // save masked DTM document handle
                  m_docHandle = documentNumber<<DOCHANDLE_SHIFT;
  
                  // Initialize the doc -- no parent, no next-sib
                  nodes.writeSlot(0,DOCUMENT_NODE,-1,-1,0);
                  // wait for the first startElement to create the doc root node
                  done = false;
          }
docs: Reset a dtm document to its initial (empty) state.
  
  The DTMManager will invoke this method when the dtm is created.
  
  @param documentNumber the handle for the DTM document.