[xsd-users] Deleting empty elements

Boris Kolpackov boris at codesynthesis.com
Fri Jan 30 13:36:34 EST 2009


Hi,

delta42 <delta42 at gmail.com> writes:

> This is the same source example you gave me before

The two versions look very similar but there is a different.
The original[1] version was checking if the element is empty
and then processing its children. 

The second version[2] first processes element's children
and then checks if it is empty. This way, if children are
empty, they will be removed first.


[1] http://www.codesynthesis.com/pipermail/xsd-users/2009-January/002165.html
[2] http://www.codesynthesis.com/pipermail/xsd-users/2009-January/002174.html

Boris




More information about the xsd-users mailing list