AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

XmlCompareUtil Methods

The XmlCompareUtil type exposes the following members.

Methods


  Name Description
Public method Static member AreElementsEquivalent
Element-by-element equivalence check that:
  • Treats null vs semantically-empty as equal.
  • Skips xmlns declarations and xsi:nil markers in attribute compare.
  • Compares children positionally (sibling order matters).
Public method Static member GetDifferences
Returns a list of human-readable difference descriptions between a and b, post-prune. Empty list when the trees are equivalent.
Public method Static member IsEmptyOrMissingNode
Returns true when e has no children, no non-whitespace value, and no meaningful attributes (either none at all or only an xsi:nil="true" marker).
Public method Static member IsEqual
Returns true when a and b are structurally equivalent after pruning semantically-empty children.
Public method Static member RemoveEmptyNodes
Recursively removes child elements that carry no real signal: no sub-elements, no non-whitespace value, and no meaningful attributes (none, or only an xsi:nil="true" marker). Leaves node in place.