O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling White-Space Interpretation with the WhitespaceHandling Property

The WhitespaceHandling property provides read and write access to a value that determines how white space will be handled. The WhitespaceHandling property takes an enumeration value of type System.Xml.WhitespaceHandling. Table 10.1 shows the WhitespaceHandling values and how they affect the XmlTextReader.

Table 10.1. The WhitespaceHandling Enumeration Values and Meanings
VALUEEFFECT ON XmlTextReader
AllBoth Whitespace and SignificantWhitespace nodes are returned.
NoneNo Whitespace or SignificantWhitespace nodes are returned.
SignificantOnly SignificantWhitespace is returned.

The WhitespaceHandling property can be changed at any time while parsing and will take effect on the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required