Enhanced XML support
- Last Updated: January 26, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Enhanced XML support
OpenEdge clients can send well-formed XML documents and additional types of
data, such as temp-tables and ProDatasets, as XMLMessage. The
TempTableMessage and DataSetMessage transport data to the JMS-provider Broker using XML. ABL has
built-in functionality to transform TEMP-TABLE or ProDataSet data into XML. Additionally, OpenEdge clients read,
write, and parse XML using SAX-READER, SAX-WRITER, and X-DOCUMENT.
For more information on accessing the examples files, see OpenEdge messages.
Saxwriter message
The following example shows how to use the SAX-WRITER object.
|
setSaxReader example
The following code sample shows how to use the setSaxReader procedure :
|
saxSender.p
The SAX-WRITER object reads XML from a
file using the SAX-READER object and send it to a queue
using an XMLMessage. The following example shows how to use
the SAX-WRITER object.
|
saxReceiver.p
The SAX-READER object reads an XMLMessage from a queue and writes it to a LONGCHAR. The following example shows how to use the SAX-READER object.
|
setX-Document example
The following code sample shows how to use the setX-Document procedure.
|
getX-Document example
The following sample code shows how to use getX-Document function.
|
domSender.p
The X-DOCUMENT object reads XML from a
file and sends it to a queue using an XMLMessage. The
following example shows how to use X-DOCUMENT object to
send a message.
|
domReceiver.p
The X-DOCUMENT object reads an XMLMessage from a queue and writes it to a LONGCHAR. The following example shows how to use X-DOCUMENT object to receive a message.
|