on 2023 Dec 06 12:28 PM
Hi Experts,
I have this source structure and I am trying to create below target structure.
Both A and B are on same level in source, but in target I am trying to put A as a child of B and the field a1 under a complex structure.
Could you please suggest, how I can achieve this please?
Source:
Source:
<root>
<A>
<a1>1</a1>
<a2>EN</a2>
<a3>Yes<a3>
</A>
<A>
<a1>2</a1>
<a2>ZH</a2>
<a3>Yes<a3>
</A>
<B>
<b1>abc<b1>
</B>
<B>
<b1>abc</b1>
</B>
<B>
<b1>abc</b1>
</B>
<B>
<b1>abc</b1>
</B>
</root>
Target:
<root>
<B>
<b1>abc</b1>
<A>
<row>
<a1>1</a1>
<a2>EN</a2>
</row>
</A>
<A>
<row>
<a1>1</a1>
<a2>EN</a2>
</row>
</A>
</B>
<B>
<b1>abc</b1>
<A>
<row>
<a1>1</a1>
<a2>EN</a2>
</row>
</A>
<A>
<row>
<a1>1</a1>
<a2>EN</a2>
</row>
</A>
</B>
</root>
Request clarification before answering.
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.