Spring batch : how generate multiple root xml elements?

I'm using spring batch to generate only one xml file. I'm facing a big issue to generate an xml with multiple root elements.

Each readed element, lets say Item could generate 3 xml elements : DayType, DayTypeAssignment and OperatingPeriod.

The generated xml looks like the following :

<members>
        
        <DayType id="A" version="any">
          <Name>093_093DIM01Dimanche50DFSO2021</Name>
        </DayType>
        <DayType id="B" version="any">
          <Name>093_093DIM01Dimanche50DFSO2021-p1</Name>
        </DayType>
        <DayType id="C" version="any">
          <Name>093_093LAV01Semaine50DFSO2021</Name>
        </DayType>
        
        <DayTypeAssignment id="OP1_A" order="0" version="any">
          <Date>2021-10-03</Date>
          <DayTypeRef ref="DayType:A" version="any"/>
          <isAvailable>true</isAvailable>
        </DayTypeAssignment>
        <DayTypeAssignment id="OP1_B" order="0" version="any">
          <Date>2021-10-10</Date>
          <DayTypeRef ref="DayType:B" version="any"/>
          <isAvailable>true</isAvailable>
        </DayTypeAssignment>
        <DayTypeAssignment id="OP1_C" order="0" version="any">
          <Date>2021-10-17</Date>
          <DayTypeRef ref="DayType:C" version="any"/>
          <isAvailable>true</isAvailable>
        </DayTypeAssignment>

        <OperatingPeriod id="OP1" version="any" >
          <FromDate>2017-06-25T00:00:00</FromDate>
          <ToDate>2017-07-01T00:00:00</ToDate>
        </OperatingPeriod>
       
      </members>

Is this possible with the StaxEventItemWriter ?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum