SANTUARIO-544 - using isEqualNode to compare 2 nodes for equality. Thanks to Alanscut <wp_scut@163.com> for the patch.