XML Writer - write messages into mutli-segments

I have a bunch of records going into the XML writer to be written as XML messages. So far this is what I have (note that personOID can be used as a key):

<Person_List>


Active
5
Aman
Hussain

789
HU997

</Person_List>

What I need to achieve is this XML message to be split into seperate tags:

<Person_List>



Active
5
Aman
Hussain

</Person_List>
<Professional_List>



Active
5

789
HU997


</Professional_List>

I tried the below sample mapping from the Clover Wiki but apparently did not get the required format:
http://wiki.cloveretl.org/doku.php?id=c … #xmlwriter

... ...

Thanks,

- CB

Quick correction: for each tag (first tag (Person_List) shown below), how would I have it in the below format?

<Person_List></Person_List>

Thanks,

- CB

Hi,

there may be just one root element.
Person_List or Professional_List, not both of them.

You should get this result <Person_List>… … </Person_List>
with this configuration:

<Node id=“XML_OUT”
type=“XML_WRITER”
rootElement=“Person_List”
… >
<![CDATA[


]]>

To specify relation between Person and Professional, add mapping subelement, i.e.

I believe, this will help you.
Regards,
Martin Varecha