code: public NodeList convertToNodeset()
    {
  
      if (m_obj instanceof NodeList)
        return (NodeList) m_obj;
      else
        return new org.apache.xml.dtm.ref.DTMNodeList(asNodeIterator());
    }
docs: Cast result object to a nodelist. (special function).
  
  @return The document fragment as a nodelist