#NEWLINE# def AnalyticsDataFeedFromString( xml_string ) : #NEWLINE# #INDENT# 'Converts an XML string into an AccountListFeed object.\n\n  Args:\n  xml_string: string The XML describing an AccountList feed.\n\n  Returns:\n  An AccountListFeed object corresponding to the given XML.\n  Each metric and dimension is also referenced directly from\n  the entry for easier access. (e.g. entry.keyword.value)\n  ' #NEWLINE# feed = atom . CreateClassFromXMLString ( AnalyticsDataFeed , xml_string ) #NEWLINE# if feed . entry : #NEWLINE# #INDENT# for entry in feed . entry : #NEWLINE# #INDENT# for met in entry . metric : #NEWLINE# #INDENT# entry . __dict__ [ met . name . replace ( 'ga:' , '' ) ] = met #NEWLINE# #UNINDENT# if ( entry . dimension is not None ) : #NEWLINE# #INDENT# for dim in entry . dimension : #NEWLINE# #INDENT# entry . __dict__ [ dim . name . replace ( 'ga:' , '' ) ] = dim #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return feed