Writes the given white space.
- text
- A string containing the white space characters.
Type Reason ArgumentException ws is null or string.Empty or contains non-white space characters. InvalidOperationException The XmlTextWriter.WriteState is WriteState.Closed.
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).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0