// else if(Node.class.isAssignableFrom(javaClass))
else if(javaClass == Node.class)
{
// Xalan ensures that iter() always returns an
// iterator positioned at the beginning.
DTMIterator ni = xobj.iter();
int handle = ni.nextNode();
if (handle != DTM.NULL)
return ni.getDTM(handle).getNode(handle); // may be null.
else
return null;