public String GetMessageXML()
{
String xml = "<message direction='"+direction.ToString()+"' type='"+type+"' datatype='"+dataType.ToString()+"' scope='"+scope+"' version='"+version+"'>";
xml += "<![CDATA[" + Payload + "]]>";
xml += "</message>";
return xml;
}