on 02-20-2015 8:15 AM
Dear Experts,
I wanted to seek your expert advise on what is the best approach to attain my output. I have a source structure as illustrated below which i want to modify into target structure as mentioned also below.
Source Input:
Target Output:
>> C10 / D10 / E10 can occur multiple times.
Appreciate your help whether this can be achieved easily by Java or XSLT mapping.
Thank you in advance!
Hi Frederick,
you can try out a simple xsl transformation to solve the problem. I have attached a sample implementation for you.
Please be aware of the namespace foo... I think you will need to the declare the target namespace and prefix it at the generated elements as "ns1".
Best regards,
Daniel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frederick,
Check Shabarish Vijayakumar's blog because your problems seems to be very near to nodeDeception issue explained there. In that blog you have a link to a wiki with the java code that it could be a good start.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I would have used the java mapping to generate the target output.
Please provide your sample xml files if you need any help on Java Mapping.
Thanks,
Indrajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.