[xsd-users] Deleting empty elements
delta42
delta42 at gmail.com
Thu Jan 29 17:25:56 EST 2009
>
> >> I think the following version will do the same much faster:
This is the same source example you gave me before, but this will only
remove the empty tags, not the tags that become empty *after* you delete all
the empty tags.
For example, with
<a>
</b>
</a>
Only the tag </b> is empty, so only it will get deleted by your functions.
However, after it gets deleted, you are left with
<a>
</a>
so *now* there is another empty tag, hence my iteration over the entire set
until no more changes are visible.
More information about the xsd-users
mailing list