Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : setX-Document procedure
 

setX-Document procedure

Copies an XML document specified by the handle parameter into the XMLMessage.

Syntax

PROCEDURE setX-Document.
DEFINE INPUT PARAMETER hdl AS HANDLE.

Applies to

Message objects

Notes

*The caller must have properly defined the handle and correctly loaded an XML document using X-DOCUMENT calls. If the handle is not an X-DOCUMENT or X-NODOREF handle, an error is returned.
*This procedure loads the XML into an internal longchar. Use setLongText procedure to copy the longchar into the XMLMessage.
*Other errors include any error generated by xdoc:SAVE, any error generated by the XMLMessage, or by setLongText procedure.

See also

createXMLMessage procedure, setX-Document procedure, getX-Document function, setSaxReader procedure, getSaxWriter function, deleteSaxWriter procedure
For more information, see the XMLMessage.