public void addNodes(DTMIterator iterator){
  if (!m_mutable)   throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESETDTM_NOT_MUTABLE,null));
  if (null != iterator) {
    int obj;
    while (DTM.NULL != (obj=iterator.nextNode())) {
      addElement(obj);
    }
  }
}

public void addNodes ( DTMIterator iterator ) { if ( ! m_mutable ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER_NODESETDTM_NOT_MUTABLE , null ) ) ; if ( null != iterator ) { int obj ; while ( DTM . NULL != ( obj = iterator . nextNode ( ) ) ) { addElement ( obj ) ; } } }
copy nodelist members into this nodelist , adding in document order . null references are not added .
