AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

XmlCompareUtil Class

Structural-equivalence and diff helpers for two XElement trees. Treats serializer noise (xmlns declarations, xsi:nil="true" markers, whitespace-only values) as "not data" so two semantically-equal serializations don't show as different.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static class XmlCompareUtil

Remarks


Mutates the trees passed in (cheap path) — callers that need the originals preserved should hand in defensive copies via new XElement(original). Caller is expected to have already stripped any framework/audit fields they don't want compared (e.g., MasterID, Version, audit fields).

Inheritance Hierarchy


Object
  AdvantageCMS.Core.Utils..::..XmlCompareUtil