Skip to Content
0
Feb 22, 2022 at 12:33 AM

Remove a Child Node if empty from XML based on a Condition using XSLT

945 Views

Hello Experts,

I want to remove the Parent node <A_BusinessPartnerAddressType> if the child node <A_BusinessPartnerRoleType> does not exisit.

So in the below XML it should delete the <BusinessPartner>22222</BusinessPartner> since <A_BusinessPartnerRoleType> does not exist. How should I achieve this using XSLT mapping.

I tried few approaches from sap forumn but its not working as expected.

image.png

Regards

Umesh

Attachments

image.png (66.3 kB)