code: public void endDocument() throws SAXException
    {
      super.endDocument();
  
      // Add a NULL entry to the end of the node arrays as
      // the end indication.
      m_exptype.addElement(NULL);
      m_parent.addElement(NULL);
      m_nextsib.addElement(NULL);
      m_firstch.addElement(NULL);
  
      // Set the cached references after the document is built.
      m_extendedTypes = m_expandedNameTable.getExtendedTypes();
      m_exptype_map = m_exptype.getMap();
      m_nextsib_map = m_nextsib.getMap();
      m_firstch_map = m_firstch.getMap();
      m_parent_map  = m_parent.getMap();
    }
docs: Receive notification of the end of the document.
  
  @throws SAXException Any SAX exception, possibly
  wrapping another exception.
  @see org.xml.sax.ContentHandler#endDocument