code: private boolean isOutsideDocElem()
     {
        return (null == m_docFrag) && m_elemStack.size() == 0 && (null == m_currentNode || m_currentNode.getNodeType() == Node.DOCUMENT_NODE);
     }
docs: Tell if the current node is outside the document element.
  
  @return true if the current node is outside the document element.