System.Xml.XmlDocument.CreateSignificantWhitespace Method

Creates an System.Xml.XmlSignificantWhitespace node.

Syntax

public virtual XmlSignificantWhitespace CreateSignificantWhitespace (string text)

Parameters

text
The string must contain only the following characters  
 
 and 	

Returns

A new XmlSignificantWhitespace node.

Remarks

This method is a Microsoft extension to the Document Object Model (DOM). It is used when you want to manually format your document.

Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.

Requirements

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