XmlReaderSettings::IgnoreWhitespace Property
Gets or sets a value indicating whether to ignore insignificant white space.
Assembly: System.Xml (in System.Xml.dll)
Property Value
Type: System::Booleantrue to ignore white space; otherwise false. The default is false.
White space that is not considered to be significant includes spaces, tabs, and blank lines used to set apart the markup for greater readability. An example of this is white space in element content.
This property setting does not affect white space between markup in a mixed content mode, or white space that occurs within the scope of an xml:space='preserve' attribute.
The following creates a settings object that can be used to construct a reader that strips processing instructions, comments, and insignificant white space.
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1