I have xml and want to remove tag which has empty values.
Source:
<wd:Worktag_Reference>
<wd:ID wd:type="abc">RISK_STATE_GA</wd:ID>
</wd:Worktag_Reference>
<wd:Worktag_Reference>
<wd:ID wd:type="abcd"/>
</wd:Worktag_Reference>
<wd:Worktag_Reference>
<wd:ID wd:type="abcde">LC011</wd:ID>
</wd:Worktag_Reference>
and I want output like this
Result:
<wd:Worktag_Reference>
<wd:ID wd:type="abc">RISK_STATE_GA</wd:ID>
</wd:Worktag_Reference>
<wd:Worktag_Reference>
<wd:ID wd:type="abcde">LC011</wd:ID>
</wd:Worktag_Reference>