We have been given an XML format that we need to generate for submitting environmental data to the Ontario Ministry of the Environment. Below is a sample of data that was provided.
I can import this into Excel but when I try to verify this for exporting, or even export with the validation turned off I get the following error: submission_map is not exportable because it contains the following: List of Lists
I know this is the fact that the result element is repeating and it is inside of a repeating element called sample. Is there anyway to overcome this and use the Excel export capabilities or am I stuck having the export file written using VB?
Thanks. MH
Sample XML file below...
<submission imis_company_code="0009990003" ws_name="INDUSTRIAL TEST PLANT">
<sample sample_date_time="20060607" imis_cp_ext="0100" cp_name="WASTE WATER FROM UNIT #1" dischg_sample_cd="" sample_comment="">
<result rpttime_name="THRICE WEEKLY" sis_imis_code="FTFLOW" parm_name="Flow" unit_abbrev="M3/D" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="32101" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
</sample>
<sample sample_date_time="20060607" imis_cp_ext="0400" cp_name="COOLING WATER STREAM" dischg_sample_cd="" sample_comment="">
<result rpttime_name="WEEKLY" sis_imis_code="PBUT" parm_name="LEAD, UNFILTERED TOTAL" unit_abbrev="MG/L" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="3.2" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
<result rpttime_name="WEEKLY" sis_imis_code="RSP" parm_name="RESIDUE,PARTICULATE" unit_abbrev="MG/L" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="0.1" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
</sample>
</submission>
I can import this into Excel but when I try to verify this for exporting, or even export with the validation turned off I get the following error: submission_map is not exportable because it contains the following: List of Lists
I know this is the fact that the result element is repeating and it is inside of a repeating element called sample. Is there anyway to overcome this and use the Excel export capabilities or am I stuck having the export file written using VB?
Thanks. MH
Sample XML file below...
<submission imis_company_code="0009990003" ws_name="INDUSTRIAL TEST PLANT">
<sample sample_date_time="20060607" imis_cp_ext="0100" cp_name="WASTE WATER FROM UNIT #1" dischg_sample_cd="" sample_comment="">
<result rpttime_name="THRICE WEEKLY" sis_imis_code="FTFLOW" parm_name="Flow" unit_abbrev="M3/D" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="32101" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
</sample>
<sample sample_date_time="20060607" imis_cp_ext="0400" cp_name="COOLING WATER STREAM" dischg_sample_cd="" sample_comment="">
<result rpttime_name="WEEKLY" sis_imis_code="PBUT" parm_name="LEAD, UNFILTERED TOTAL" unit_abbrev="MG/L" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="3.2" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
<result rpttime_name="WEEKLY" sis_imis_code="RSP" parm_name="RESIDUE,PARTICULATE" unit_abbrev="MG/L" rptas_abbrev="NOT APPL" result_structure="SI" component_type="SM" result_value="0.1" remark_code_1="" remark_code_2="" remark_code_3="" result_comment="" imis_regulation_code_1="MC" imis_regulation_code_2="" imis_regulation_code_3="" imis_regulation_code_4="" imis_regulation_code_5="" imis_regulation_code_6="" imis_regulation_code_7="" imis_regulation_code_8="" imis_regulation_code_9="" imis_regulation_code_10=""/>
</sample>
</submission>