cleaner code for cleaning empty tags  plus xml:lang handling