Click or drag to resize

MessageToXml Method

Returns the XML string representation of the Message.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public string ToXml(
	bool indent
)

Parameters

indent
Type: SystemBoolean
If true the XML string will have additional whitespace included to indent the XML tree.

Return Value

Type: String
The XML string representation of the Message.
Remarks

As an example, consider a Layout named CONTACT with four fields called SERVICE, GROUP, USERNAME and USERCODE. The string returned by this method for a Message with layout CONTACT would be identical to the following indented XML tree:

<CONTACT>
    <SERVICE>service</SERVICE>
    <GROUP>group</GROUP>
    <USERNAME>user</USERNAME>
    <USERCODE>12345</USERCODE>
</CONTACT>
See Also