Cleaning xml namespace file to not write useless information like empty comment, empty object type, ...