When you build your XML data structure, use the Generate option.
If you create it based on the XML you provided before, you should end up with a structure in which Record is nested under another collection. Then you can map the array from the Array Aggregator the record field in the XML module.
Something like this…