def GetNodes(node, match_tag):
 return (child for child in node.getchildren() if (GetTag(child) == match_tag))

def GetNodes ( node , match_tag ) : return ( child for child in node . getchildren ( ) if ( GetTag ( child ) == match_tag ) )
gets all children of a node with the desired tag .