Mapping Question

#13018

There is element in input xml file called Special indicator under the record node, I want to create multiple set of output for different value of Special indicator.
For example if input xml file contains five records three with special indicator * and the remaining two with blank special indicator.
The out should contain two xml file one with three records and other with two record.

I will be thankful to you, if you can provide me the detail of more resources about Debatching the message in pipeline and inside an orchestration loop.