int next = m_pos+1; if((next >= 0) && (next < m_nl.getLength()))
if (-1 == m_pos)
    public Node nextNode()                         throws DOMException    {      int next = m_pos+1;      if((next >= 0) && (next < m_nl.getLength()))        {        m_pos++;        return m_nl.item(next);      }      else        return null;    }