Forum Discussion

Buschfunk's avatar
Buschfunk
Frequent Contributor
15 years ago

Remove empty elements completely

Hello,

I'm not sure if the following is a specified behavior or if it is a bug

  • Create a mock service with any response

  • In the mock response properties set "Remove Empty Content=true"

  • Result: Only empty child elements are removed. The parent element is still present in the response

Example:

<parent>
<child1/>
<child2/>
</parent>

leads to

<parent/>

Cheers,
Robert

1 Reply