System.Xml.Xsl.XsltContext.PreserveWhitespace Method

When overridden in a derived class, evaluates whether to preserve white space nodes or strip them for the given context.

Syntax

public abstract bool PreserveWhitespace (System.Xml.XPath.XPathNavigator node)

Parameters

node
The white space node that is to be preserved or stripped in the current context.

Returns

Returns true if the white space is to be preserved or false if the white space is to be stripped.

Remarks

The return value comes from the nearest ancestor's preserve-whitespace or strip-whitespace attribute value.

Requirements

Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0