Working with Document Fragments
Document fragments are DOM objects that do not correspond precisely to a particular construct in XML 1.0. They represent a portion, not necessarily well-formed, of an XML document. Document fragments provide programmers with a tool for storing nodes like a DOMDocument
object with fewer restrictions and overhead.
IXMLDOMDocumentFragment
must be created using the createDocumentFragment
method of the DOMDocument
object. The content stored in the document fragment remains, but the document fragment placeholder disappears when inserted into a document tree.
For more information about properties and methods of XMLDOMDocumentFragment
, see IXMLDOMDocumentFragment.