* Implements the nodeset() extension function.
*/
public static NodeIterator nodesetF(Object obj) {
if (obj instanceof DOM) {
final DOMAdapter adapter = (DOMAdapter) obj;
return new SingletonIterator(
DOM.ROOTNODE | adapter.getMultiDOMMask(), true);
}
else if (obj instanceof NodeIterator) {
return (NodeIterator) obj;
}