The simplest way is to:
Create an System.Xml.XmlDocument orchestration variable, load an Xml string and assign this to a message in a message assignment shape.
[code:1:d8064e0e86]xmlDoc.LoadXml(\"<message><node/></message>\");
message = xmlDoc;[/code:1:d8064e0e86]
This can get difficult if the Xml is large. In which case you could create a .Net assembly with a static method which returns System.Xml.XmlDocument
[code:1:d8064e0e86]namespace MyAssembly
class Helper{
public static System.Xml.XmlDocument CreateMessage()
{
//code create XmlDocument here
}
}[/code:1:d8064e0e86]
Compile and GAC this assembly and call from a message assignment shape
[code:1:d8064e0e86]message = MyAssembly.Helper.CreateMessage();[/code:1:d8064e0e86]