AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

XmlCompareUtil..::..RemoveEmptyNodes Method

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.

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

Syntax


public static void RemoveEmptyNodes(
	XElement node
)

Parameters

node
Type: XElement
The element to prune in place.