Some minor tweaks around XML normalization and equality.