Gets or sets a value that specifies the type of white space returned by the reader.
One of the members of the System.Xml.WhitespaceHandling enumeration. The default is WhitespaceHandling.All (returns both significant and insignificant white space).
Type Reason ArgumentOutOfRangeException The value to be set is not one of the members of the System.Xml.WhitespaceHandling enumeration. InvalidOperationException When setting the property, the XmlTextReader.ReadState is ReadState.Closed.
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.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0