System.Xml.XmlDocument.CreateDocumentFragment Method

Creates an System.Xml.XmlDocumentFragment.

Syntax

public virtual XmlDocumentFragment CreateDocumentFragment ()

Returns

The new XmlDocumentFragment.

Remarks

DocumentFragment nodes cannot be inserted into a document. However, you can insert children of the DocumentFragment node into a document.

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