def next(self, name=None):
if self.parent is None or self.index is None:<EOL><INDENT>return None<EOL><DEDENT>for idx in xrange(self.index + <NUM_LIT:1>, len(self.parent)):<EOL><INDENT>if name is None or self.parent[idx].tagname == name:<EOL><INDENT>return self.parent[idx]<EOL><DEDENT><DEDENT>
Returns the next sibling of this node.

:param name: If specified, only consider elements with this tag name
:rtype: :class:`XmlElement`