// 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();
return ni.getDTM(handle).getNode(handle); // may be null.
}
else if(javaClass == java.lang.String.class)
{