'Get the next child.
@return: The next child.
@rtype: L{Element}
@raise StopIterator: At the end.'

def next(self):

    try:
        child = self.children[self.pos]
        self.pos += 1
        return child
    except:
        raise StopIteration()
