title: How do I stop my System.Messaging.MessageQueue from wrapping my strings in XML?
body: <p>I need to communicate with a legacy application from my C# app via the Windows Message Queue.</p>
  
  <p>The legacy application expects plain string messages in a particular private queue, but I can't seem to stop the System.Messaging.MessageQueue from wrapping my message in XML!</p>
  
  <p>The code I'm testing is very simple:</p>
  
  <pre><code>MessageQueue myQueue = new MessageQueue(@".\Private$\tolegacy");
  Message msg = new Message("My Test String");
  myQueue.Send(msg);
  </code></pre>
  
  <p>The trouble is that the message is being XML serialized and appears in the queue as:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;&lt;string&gt;My Test String&lt;/string&gt;
  </code></pre>
  
  <p><strong>I can't modify the behaviour of the legacy application, so I need to stop the System.Messaging.MessageQueue from formatting my message as XML.</strong></p>
  
  <p>Can anyone help?</p>