Saxon API for .NET

DocumentBuilder.WhitespacePolicy Property

Determines the whitespace stripping policy applied when loading a document using this DocumentBuilder.

public WhitespacePolicy WhitespacePolicy {get; set;}

Remarks

By default, whitespace text nodes appearing in element-only content are stripped, and all other whitespace text nodes are retained.

See Also

DocumentBuilder Class | Saxon.Api Namespace