AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

XmlCompareUtil..::..AreElementsEquivalent Method

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).

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

Syntax


public static bool AreElementsEquivalent(
	XElement a,
	XElement b
)

Parameters

a
Type: XElement
The first element.
b
Type: XElement
The second element.

Return Value

true when the two elements are structurally equivalent; otherwise false.