Created
February 1, 2017 18:08
-
-
Save jonathanvila/09f461527e805bbc642e21bd1ca37b84 to your computer and use it in GitHub Desktop.
Transform a List<Map<String,String>> to a String ( xml formatted ) using grouping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Origin = List<HashMap<String,String>> | |
[ [skuid=10, date_eff=JAN, date_inac=FEB, vat_code_att=S, pcnt_to_aply=80], | |
[skuid=10, date_eff=JAN, date_inac=FEB, vat_code_att=Z, pcnt_to_aply=20], | |
[skuid=10, date_eff=MAR, date_inac=APR, vat_code_att=S, pcnt_to_aply=100] | |
] | |
Destination = String | |
<SkuTax skuId="10"> | |
<SkuTaxPeriod date_eff="JAN" date_inac="FEB"> | |
<Tax vatCode="S" pcnt="80"/> | |
<Tax vatCode="Z" pcnt="20"/> | |
</SkuTaxPeriod> | |
<SkuTaxPeriod date_eff="MAR" date_inac="APR"> | |
<Tax vatCode="S" pcnt="100"/> | |
</SkuTaxPeriod> | |
</SkuTax> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment