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)
Syntaxpublic string ToXml(
bool indent
)
Public Function ToXml (
indent As Boolean
) As String
Parameters
- indent
- Type: SystemBoolean
If true the XML string will have additional whitespace included
to indent the XML tree.
Return Value
Type:
StringThe XML string representation of the Message.
RemarksAs 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