XML Export question - multiple instances of complex data types

Hello - I am attempting to export XML code using data elements from user-input. A few of the data elements within several complex data types can hold different values based on the input from the user. This is for an insurance company so, for example, a user can select 1 coverage with 1 deductible (in the <coveragetype> and <deductible> data type), and then select another coverage with another deductible (in another instance of the <coveragetype> and <deductible> data type.) When export mapping, I'm not sure how I can create that second instance if the user selects another coverage. Should I create some sort of microflow loop? Any help is appreciated, thanks!
1 answers