SANTUARIO-540 - refactor of DOMCanonicalizationMethod. Thanks to Alanscut <wp_scut@163.com> for the patch. This closes #30.