1. Compressing XML can reduce the system memory consumed by saving Xml data.
2. The formatted Xml data makes it easier to see its format and structure, making it more convenient to operate Xml.