setX-Document procedure
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Copies an XML document specified by the handle parameter into the
XMLMessage.
Syntax
|
Applies to
Message objects
Notes
- The caller must have properly defined the handle and correctly loaded an XML document
using
X-DOCUMENTcalls. If the handle is not anX-DOCUMENTorX-NODOREFhandle, an error is returned. - This procedure loads the XML into an internal
longchar. Use setLongText procedure to copy thelongcharinto theXMLMessage. - Other errors include any error generated by
xdoc:SAVE, any error generated by theXMLMessage, 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.