I have a xml document and in that document, I could have a mixture of elements and attributes.
Is there Java code available out there to drop empty elements and attributes? I don’t want to have to go through each elements and/or attributes to find out if their value is null or empty then dropping it.