Problem

Apply XML compression to any table that has XML columns

Solution

https://github.com/steverezhener/DBA/blob/master/Procedures/bestpractices.usp_apply_database_xml_compression.sql

Based on