on 2023 May 12 1:26 AM
Hi All,
could you please provide me either groovy or XSLT to convert the input file to output format.
<Output>
<Row>
<H1>H1</H1>
<H2>H2</H2>
<I1>I11</I1>
<I2>I12</I2>
</Row>
<Row>
<H1>H3</H1>
<H2>H4</H2>
<I1>I21</I1>
<I2>I22</I2>
</Row>
<Row>
<H1>H1</H1>
<H2>H2</H2>
<I1>I31</I1>
<I2>I32</I2>
</Row>
<Row>
<H1>H3</H1>
<H2>H4</H2>
<I1>I41</I1>
<I2>I42</I2>
</Row>
</Output>
<Output>
<Row>
<Header>
<H1>H1</H1>
<H2>H2</H2>
</Header>
<Item>
<I1>I11</I1>
<I2>I12</I2>
</Item>
<Item>
<I1>I31</I1>
<I2>I32</I2>
</Item>
</Row>
<Row>
<Header>
<H1>H3</H1>
<H2>H4</H2>
</Header>
<Item>
<I1>I21</I1>
<I2>I22</I2>
</Item>
<Item>
<I1>I41</I1>
<I2>I42</I2>
</Item>
</Row>
</Output>
Regards,
Request clarification before answering.
Hi,
You can achieve this easily by using message mapping. Create the target xsd as you need and then map accordingly.
Alternatively, as Morten suggested, please post the XSLT you are currently using.
Kind regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.