Improve and expand ways of checking for XML equivalence

Corrected whitespace ignoring in CanonicalXml.
Added Assert statements for XML equivalence.