def GetChild(node, tag):
 for child in node.getchildren():
  if (GetTag(child) == tag):
   return child

def GetChild ( node , tag ) : for child in node . getchildren ( ) : if ( GetTag ( child ) == tag ) : return child
returns first child of node with tag .