AnsweredAssumed Answered

Need to remove XML attributes if there is no data populating from source

Question asked by ravithongher957953331 on Feb 6, 2018
Latest reply on Mar 12, 2018 by hido_hasimbegovic060177

i need to remove the XML attributes if there is no data populating from source.

 

In below file i need to remove 2nd attribute which is not having the value. Like this i have empty value in whole file.

Anyone suggest how to remove the attribute if there is no data.

 

<attribute>
<attributeName>energy_star_compliant</attributeName>
<attributeValue>Yes</attributeValue>
</attribute>
<attribute>
<attributeName>watts_controlled</attributeName>
<attributeValue />

Outcomes