XsltContext.PreserveWhitespace Method (XPathNavigator)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

public abstract bool PreserveWhitespace(
	XPathNavigator node


Type: System.Xml.XPath.XPathNavigator

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

Return Value

Type: System.Boolean

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

.NET Framework
Available since 1.1
Available since 4.0
Return to top