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

System.Xml.XmlTextWriter.WriteWhitespace Method

Writes the given white space.

public override void WriteWhitespace (string text)

Parameters

text
A string containing the white space characters.

Exceptions

TypeReason
ArgumentExceptionws is null or string.Empty or contains non-white space characters.
InvalidOperationExceptionThe XmlTextWriter.WriteState is WriteState.Closed.

Remarks

Note:

This method is used to manually format a document. Use the XmlTextWriter.Formatting property to have the current instance format the output automatically.

This method overrides XmlWriter.WriteWhitespace(string).

Requirements

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