For example, we have xml file with this format:
<A>
<B>
<C></C>
<D></D>
<D></D>
</B>
</A>
i need that: if all "D"-tags elements are empty, then we need to delete whole "A"-tag element
and, of course, we need to do this with all "A"-tags in xml.