Example of building an XML
If building your XML requires iterating over a set of data to create multiple parent and child elements, we recommend to have an XML variable declared in the Start node that acts as the root element for the file. When using the XML node to build the body of this file, you have to append each element to the variable. When the process is done iterating over the data, the entire XML is written out to a file.
This is an example of building an XML file: