def _convert_xml_to_directories_and_files(response):
if response is None or response.body is None:<EOL><INDENT>return None<EOL><DEDENT>entries = _list()<EOL>list_element = ETree.fromstring(response.body)<EOL>next_marker = list_element.findtext('<STR_LIT>') or None<EOL>setattr(entries, '<STR_LIT>', next_marker)<EOL>entries_element = list_element.find('<STR_LIT>')<EOL>for file_element in entries_element.findall('<STR_LIT>'):<EOL><INDENT>file = File()<EOL>file.name = file_element.findtext('<STR_LIT:Name>')<EOL>properties_element = file_element.find('<STR_LIT>')<EOL>file.properties.content_length = int(properties_element.findtext('<STR_LIT>'))<EOL>entries.append(file)<EOL><DEDENT>for directory_element in entries_element.findall('<STR_LIT>'):<EOL><INDENT>directory = Directory()<EOL>directory.name = directory_element.findtext('<STR_LIT:Name>')<EOL>entries.append(directory)<EOL><DEDENT>return entries<EOL>
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://myaccount.file.core.windows.net/" ShareName="myshare" DirectoryPath="directory-path">
  <Marker>string-value</Marker>
  <MaxResults>int-value</MaxResults>
  <Entries>
    <File>
      <Name>file-name</Name>
      <Properties>
        <Content-Length>size-in-bytes</Content-Length>
      </Properties>
    </File>
    <Directory>
      <Name>directory-name</Name>
    </Directory>
  </Entries>
  <NextMarker />
</EnumerationResults>