parameters: (elem, name)
return_statement: return None
docstring: Returns the value of XML element with the given name.
docstring_summary: Returns the value of XML element with the given name.
docstring_tokens: Returns the value of XML element with the given name .
function: def get_elem_value(elem, name):
    """Returns the value of XML element with the given name."""
    for child in elem:
      if child.attrib.get("name") != name:
        continue
      if child.tag == "string":
        return child.attrib.get("value")
      if child.tag == "boolean":
        return child.attrib.get("value") == "true"
      if child.tag == "list":
        return [nested_child.attrib.get("value") for nested_child in child]
      raise "Cannot recognize tag: " + child.tag
    return None
function_tokens: def get_elem_value ( elem , name ) : for child in elem : if child . attrib . get ( "name" ) != name : continue if child . tag == "string" : return child . attrib . get ( "value" ) if child . tag == "boolean" : return child . attrib . get ( "value" ) == "true" if child . tag == "list" : return [ nested_child . attrib . get ( "value" ) for nested_child in child ] raise "Cannot recognize tag: " + child . tag return None