Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class WhitespacePolicy

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Class WhitespacePolicy


public class WhitespacePolicy
implements object

WhitespacePolicy is a class defining the possible policies for handling whitespace text nodes in a source document. Please note that since Saxon 9.7.0.8 this class has been refactored from the enumeration type with the same name and therefore will work as before.


Field Summary
static WhitespacePolicy StripAll

All whitespace text nodes are stripped

static WhitespacePolicy StripIgnorable

Whitespace text nodes appearing in element-only content are stripped

static WhitespacePolicy PreserveAll

No whitespace is stripped

static WhitespacePolicy Unspecified

Unspecified means that no other value has been specifically requested

 
Field Detail

StripAll

public static WhitespacePolicy StripAll

All whitespace text nodes are stripped


StripIgnorable

public static WhitespacePolicy StripIgnorable

Whitespace text nodes appearing in element-only content are stripped


PreserveAll

public static WhitespacePolicy PreserveAll

No whitespace is stripped


Unspecified

public static WhitespacePolicy Unspecified

Unspecified means that no other value has been specifically requested