My case is somewhat similar to Padmaraj's in the linked post. In my case input is database records with separate address fields for home and business and output should be looping address types in xml format.
Input fields are something like:
Home address line 1
Home address line 2
Business address line 1
Business address line 2
In the target xsd schema there is a looping Address element. Output should be like:
Hi
You are able to generate the XML file in the below format with tAdvancedFileOutputXML component.
<address type="home">
<line>line1</line>
<line>line2</line>
</address>
<address type="business">
<line>line1</line>
<line>line2</line>
</address>
Set address as a group element, and set line as a loop element, see
Best regards
Shong