AnsweredAssumed Answered

Re-arrange numbering sequence

Question asked by clint-agustin.palanca485942 on Dec 20, 2017
Latest reply on Dec 20, 2017 by leif.jacobsen@dagrofa.dk

Is there a way to re-arrange the numbering sequence in a xml.

I have project requirement that resulted the sequence to be jumbled because of the grouping but I need to re-arrange backagain the sequence.

 

From:

<MainPayload>

<Payload>

     <Sequence>3</Sequence>

      <Data>Dog<Data>

 

</Payload>

 <Payload>

 

      <Sequence>1</Sequence>

      <Data>Cat<Data>

  </Payload>

<Payload>

 

      <Sequence>2</Sequence>

      <Data>Pig<Data>

</Payload>

</MainPayload>

 

 

 

To:

<MainPayload>

<Payload>

     <Sequence>1</Sequence>

      <Data>Cat<Data>

</Payload>

 <Payload>

      <Sequence>2</Sequence>

      <Data>Pig<Data>

 </Payload>

<Payload>

      <Sequence>3</Sequence>

      <Data>Dog<Data>

</Payload>

</MainPayload>

Outcomes