I\'m looking for a simple Java snippet to remove empty tags from a (any) XML structure
bla
<
As a side note: The different states of a tag actually have meaning:
null
or nil
So, by removing empty Open-Closed tags and Single-Tags, you're merging them with the group of missing tags and thus lose information.