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, #rfi1387308663466, getX-Document function, setSaxReader procedure, getSaxWriter function, deleteSaxWriter procedure

For more information, see the XMLMessage.