'Parses a file and gets array map.
Given a file, parse it to get array and pool(srp).
.. code:: ini
<EMC>
<RestServerIp>10.108.246.202</RestServerIp>
<RestServerPort>8443</RestServerPort>
<RestUserName>smc</RestUserName>
<RestPassword>smc</RestPassword>
<SSLCert>/path/client.cert</SSLCert>
<SSLVerify>/path/to/certfile.pem</SSLVerify>
<PortGroups>
<PortGroup>OS-PORTGROUP1-PG</PortGroup>
</PortGroups>
<Array>000198700439</Array>
<SRP>SRP_1</SRP>
</EMC>
:param file_name: the configuration file
:returns: list'

def parse_file_to_get_array_map(self, file_name):

    kwargs = {}
    my_file = open(file_name, 'r')
    data = my_file.read()
    my_file.close()
    dom = minidom.parseString(data)
    try:
        connargs = self._get_connection_info(dom)
        portgroup = self._get_random_portgroup(dom)
        serialnumber = self._process_tag(dom, 'Array')
        if (serialnumber is None):
            LOG.error('Array    Serial    Number    must    be    in    the    file    %(file)s.', {'file': file_name})
        srp_name = self._process_tag(dom, 'SRP')
        if (srp_name is None):
            LOG.error('SRP    Name    must    be    in    the    file    %(file)s.', {'file': file_name})
        slo = self._process_tag(dom, 'ServiceLevel')
        workload = self._process_tag(dom, 'Workload')
        kwargs = {'RestServerIp': connargs['RestServerIp'], 'RestServerPort': connargs['RestServerPort'], 'RestUserName': connargs['RestUserName'], 'RestPassword': connargs['RestPassword'], 'SSLCert': connargs['SSLCert'], 'SSLVerify': connargs['SSLVerify'], 'SerialNumber': serialnumber, 'srpName': srp_name, 'PortGroup': portgroup}
        if (slo is not None):
            kwargs.update({'ServiceLevel': slo, 'Workload': workload})
    except IndexError:
        pass
    return kwargs
