GenXMLString method: Message class
Syntax
GenXMLString()
Description
The GenXMLString method creates an XML string based on the message after it's loaded from the message buffer.
Note:
This method does not support nonrowset-based messages.
Parameters
None.
Returns
An XML string.
Example
In the following example, the first thee lines of code creates the message object and copies the data from a Component buffer into the message object. The last line creates an XML string based on that message object.
&MSG = CreateMessage(OPERATION.PO_INSERT);
&RS = GetLevel0();
&MSG.CopyRowset(&RS);
&XML_STRING = &MSG.GenXMLString();
Related Topics