Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.WhitespaceHandling Property

Gets or sets a value that specifies the type of white space returned by the reader. [Edit]

public WhitespaceHandling WhitespaceHandling { set; get; }

Value

One of the members of the System.Xml.WhitespaceHandling enumeration. The default is WhitespaceHandling.All (returns both significant and insignificant white space). [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value to be set is not one of the members of the System.Xml.WhitespaceHandling enumeration. [Edit]
InvalidOperationExceptionWhen setting the property, the XmlTextReader.ReadState is ReadState.Closed. [Edit]

Remarks

This property can be changed at any time before the current instance is closed and takes affect on the next read operation.

Note:

Because an instance of the System.Xml.XmlTextReader class does not have DTD information available to it, SignificantWhitespace nodes are only returned within the xml:space="preserve" scope.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0