Skip to Content
0

Remove target structure element

Dec 07, 2016 at 09:15 AM

57

avatar image

Dear All,

I have a requirement where it is from source structure to target structure in message mapping. The source structure and target structure is different. I want remove below element using UDF I mark as red in target structure.

Would you please give some advice about the issue? Thank you for your great support.

Many thanks & best regards,

Hubery

go.png (11.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Amarnath M Dec 07, 2016 at 10:00 AM
0
Show 2 Share
10 |10000 characters needed characters left characters exceeded

XMLAnonymizer Bean is meant for only removing namespace not the structure.

2

Hi Amarnath & Manoj,

Thank you for your advice.

Many thanks & best regards,

Hubery

0
Manoj K Dec 07, 2016 at 10:39 AM
0

Hubery,

I doubt if UDF would suffice for this requirement , you can go for java mapping just using replaceALL function.

Br,

Manoj

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Manoj,

Your solution should be possible. Thank you for your advice.

Many thanks & best regards, Hubery

0
Evgeniy Kolmakov Dec 07, 2016 at 12:23 PM
0

Hi Hubery!

If target message type is created in ESR, why not to change its definition?

If you need to remove the root node of your xml structure, the easiest way, I guess, is to use XSL transformation next to your graphical mapping.

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Yes Evgeniy,

in fact, I change another solution. I use element "DATASET" as a root node, and remove the namespace in Message Type. I mean whether UDF can do it or not. The answer should be negative. The XSL should be OK.

Thank you Evgeniy for your solution.

Many thanks & best regards,
Hubery

0