tXMLMap drops repeated child elements only copies first child

Highlighted
Four Stars

tXMLMap drops repeated child elements only copies first child

Hi

I have a complex XML structure with repeated child nodes, e.g. simple example, multiple email addresses (below).

 

The structure is the same on input and output.  The goal is to copy all elements across.

when I do this only the first child of each repeated element is copied across. Below, that would be only the first email address, the others are dropped.

 

So, that is the simple case, I actually want to modify some of the element content on the parent level (e.g name), but can't get a simple copy.  Any ideas?  Am I missing something about tXMLMap (does it not do this simple case).  

Should I just write an XSLT?

 

<person>

<name>name goes here</name>

<emails_addresses>

<email_address>a@b.c</email_address>

<email_address>a@b.c</email_address>

<email_address>a@b.c</email_address>

</emails_addresses>

</person>