def next(self):
        while 1:
            try:
                n = self.node[self.i]
            except __HOLE__:
                raise StopIteration
            self.i += 1
            if isinstance(n, elclass):
                break
        return n
dataset/ETHPy150Open kdart/pycopia/XML/pycopia/XML/POM.py/NodeIterator.next