Try OpenEdge Now
skip to main content
Working with XML
Reading and Writing XML with the Document Object Model (DOM) : Creating XML output from ABL
 

Creating XML output from ABL

This section describes how to create XML output from ABL. To create an output XML document:
1. Create an X-document object.
2. Create an X-noderef object to represent your root node.
3. Create an X-noderef object to represent nodes for your document.
4. Create the root node and append it to the document.
5. Create each specific node required.
6. Append each node to its parent.
7. Set node attributes. (Steps 5 through 7 should be repeated as necessary.)
8. Save the document as an XML file.
9. Delete the objects.
* The root node reference object
* Creating and appending a node
* Setting node attributes and values
* Example of creating an output XML file