Subject:Strip Empty Elements and Attributes but leave Elements with populated attributes Author:Dan Paul Date:03 Mar 2007 11:41 AM
I'm trying to strip empty elements and empty attributes from a document but leave in elements that are empty but have attributes that are populated. So far I've got the following code which removes all elements even if they have attributes populated. How do I add a conditions so something like <employee id="60"/> does not get stripped?