複製文件片段Copying Document Fragments

您可以建立 XmlDocumentFragment 節點,然後將節點加入其下。You can create an XmlDocumentFragment node and then add nodes under it. XmlDocumentFragmentInsertNode 方法插入時,不會複製 XmlDocumentFragment 節點,但是它的子節點會插入 XML 文件物件模型 (DOM) 中。When the XmlDocumentFragment is inserted with the InsertNode method, the XmlDocumentFragment node is not copied, but its child nodes are inserted in the XML Document Object Model (DOM).

另請參閱See also