The xml canonic command from the XMLStarlet suite is a powerful tool designed for transforming XML documents into their canonical forms.