Remove empty tag from XML

I’m creating an XML by providing XML Schema to the incoming data.
Can anyone provide some inputs how can I remove an empty tag from an XML?

Can probably use the XSLT snap with some XSL code to strip the empty elements.

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439275/XSLT