public void addNodes(NodeList nodelist){
  if (!m_mutable)   throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_NOT_MUTABLE,null));
  if (null != nodelist) {
    int nChildren=nodelist.getLength();
    for (int i=0; i < nChildren; i++) {
      Node obj=nodelist.item(i);
      if (null != obj) {
        addElement(obj);
      }
    }
  }
}

public void addNodes ( NodeList nodelist ) { if ( ! m_mutable ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER_NODESET_NOT_MUTABLE , null ) ) ; if ( null != nodelist ) { int nChildren = nodelist . getLength ( ) ; for ( int i = 0 ; i < nChildren ; i ++ ) { Node obj = nodelist . item ( i ) ; if ( null != obj ) { addElement ( obj ) ; } } } }
copy nodelist members into this nodelist , adding in document order . if a node is null , don ' t add it .
