cancel
Showing results for 
Search instead for 
Did you mean: 

Getting unwanted xml tag

Sahil
Contributor

Hi,
I am getting unwanted tags in my output xml.
such as

image

How do I avoid it.
My pipeline looks like below:-
image

1 ACCEPTED SOLUTION

Supratim
Contributor III

@Sahil I think you already make root element, so delete the extra mapper as I suggest. It should work.(only removing the DocumentRoot from xml formatter)

View solution in original post

3 REPLIES 3

Supratim
Contributor III

@Sahil add another mapper after mapper1, then use $ = your_root_ele_name like screenshot and remove DocumentRoot from xml formatter. Should work.

image

Hi @Supratim ,
Thanks for reply!
I tried like below but getting two root node.
image
image
image

Output:-
image

Supratim
Contributor III

@Sahil I think you already make root element, so delete the extra mapper as I suggest. It should work.(only removing the DocumentRoot from xml formatter)