def siblings(self, name=None):
if self.parent and self.index:<EOL><INDENT>for c in self.parent._children:<EOL><INDENT>if c.index != self.index and (name is None or name == c.tagname):<EOL><INDENT>yield c<EOL><DEDENT><DEDENT><DEDENT>
Yields all siblings of this node (not including the node itself).

:param name: If specified, only consider elements with this tag name