Insert a document fragment into an XML file
- Last Updated: October 17, 2024
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
You may want to insert a document fragment into an XML node. A document fragment is a piece of a Document Object Model (DOM) tree. Changes made to the fragment do not affect the document and are more efficient that updating the DOM directly. Typically, you make changes to the document fragment and then insert it into the DOM tree when ready.
The following sample program shows how to create a document fragment and insert it into the XML document. To create a document fragment, you call CREATE-NODE() and specify the "DOCUMENT-FRAGMENT" subtype.
|