Group Name
01 01 - ID prod lights
01 01 - ID prod buoys
01 01 - ID prod achare
02 02 - ID insert lights
02 02 - ID insert buoys
03 03 - ID move lights
03 03 - ID move buoys
03 03 - ID move achare
04 04 - ID del lights
04 04 - ID del achare
05 05 - global deletes
06 06 - decide lights
06 06 - decide buoys
The XML I am trying to generate would look like this
<ApplyActionsTask>
<label>01</label>
<action>01 - ID prod lights</action>
<action>01 - ID prod buoys</action>
<action>01 - ID prod achare</action>
</ApplyActionsTask>
<ApplyActionsTask>
<label>02</label>
<action>02 - ID insert lights</action>
<action>02 - ID insert buoys</action>
</ApplyActionsTask>
<ApplyActionsTask>
<label>03</label>
<action>03 - ID move lights</action>
<action>03 - ID move buoys</action>
<action>03 - ID move achare</action>
</ApplyActionsTask>
<ApplyActionsTask>
<label>04</label>
<action>04 - ID del lights</action>
<action>04 - ID del achare</action>
</ApplyActionsTask>
<ApplyActionsTask>
<label>05</label>
<action>05 - global deletes</action>
</ApplyActionsTask>
<ApplyActionsTask>
<label>06</label>
<action>06 - decide lights</action>
<action>06 - decide buoys</action>
</ApplyActionsTask>
I am just struggling with how to get things to group up in the right way and eventually generate a single feature containing the XML above in an attribut so I can insert it into a soap message using XML appender.
The number of items in each group is variable and also the number of groups is variable. I think the answer will need some kind of loop and custom transformer but not entirely sure yet.
Any help much appreciated.
Jim