def _convert_xml_to_shares(response):
if response is None or response.body is None:<EOL><INDENT>return None<EOL><DEDENT>shares = _list()<EOL>list_element = ETree.fromstring(response.body)<EOL>next_marker = list_element.findtext('<STR_LIT>') or None<EOL>setattr(shares, '<STR_LIT>', next_marker)<EOL>shares_element = list_element.find('<STR_LIT>')<EOL>for share_element in shares_element.findall('<STR_LIT>'):<EOL><INDENT>share = Share()<EOL>share.name = share_element.findtext('<STR_LIT:Name>')<EOL>share.snapshot = share_element.findtext('<STR_LIT>')<EOL>metadata_root_element = share_element.find('<STR_LIT>')<EOL>if metadata_root_element is not None:<EOL><INDENT>share.metadata = dict()<EOL>for metadata_element in metadata_root_element:<EOL><INDENT>share.metadata[metadata_element.tag] = metadata_element.text<EOL><DEDENT><DEDENT>properties_element = share_element.find('<STR_LIT>')<EOL>share.properties.last_modified = parser.parse(properties_element.findtext('<STR_LIT>'))<EOL>share.properties.etag = properties_element.findtext('<STR_LIT>')<EOL>share.properties.quota = int(properties_element.findtext('<STR_LIT>'))<EOL>shares.append(share)<EOL><DEDENT>return shares<EOL>
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults AccountName="https://myaccount.file.core.windows.net">
  <Prefix>string-value</Prefix>
  <Marker>string-value</Marker>
  <MaxResults>int-value</MaxResults>
  <Shares>
    <Share>
      <Name>share-name</Name>
      <Snapshot>date-time-value</Snapshot>
      <Properties>
        <Last-Modified>date/time-value</Last-Modified>
        <Etag>etag</Etag>
        <Quota>max-share-size</Quota>
      </Properties>
      <Metadata>
        <metadata-name>value</metadata-name>
      </Metadata>
    </Share>
  </Shares>
  <NextMarker>marker-value</NextMarker>
</EnumerationResults>