Removing unused XML