def AnalyticsDataFeedFromString(xml_string):
  feed = atom.CreateClassFromXMLString(AnalyticsDataFeed, xml_string)
  if feed.entry:
    for entry in feed.entry:
      for met in entry.metric:
        entry.__dict__[met.name.replace('ga:','')] = met
      if entry.dimension is not None:
        for dim in entry.dimension:
          entry.__dict__[dim.name.replace('ga:','')] = dim
        
  return feed
Converts an XML string into an AccountListFeed object.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/analytics/__init__.py/AnalyticsDataFeedFromString