public NodeSetDTM(NodeIterator iterator,XPathContext xctxt){
  super();
  Node node;
  m_manager=xctxt.getDTMManager();
  while (null != (node=iterator.nextNode())) {
    int handle=xctxt.getDTMHandleFromNode(node);
    addNodeInDocOrder(handle,xctxt);
  }
}

public NodeSetDTM ( NodeIterator iterator , XPathContext xctxt ) { super ( ) ; Node node ; m_manager = xctxt . getDTMManager ( ) ; while ( null != ( node = iterator . nextNode ( ) ) ) { int handle = xctxt . getDTMHandleFromNode ( node ) ; addNodeInDocOrder ( handle , xctxt ) ; } }
create a nodesetdtm , and copy the members of the given dtmiterator into it .
