title: Modifying XML response in WCF; broken XML
body: <p>I am trying to modify response from a Web Service using a ClientMessageInspector. At some point I need to create a <code>Message</code> from a modified <code>XMLStream</code>. The content of the stream is below:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://env" xmlns:xsd="http://xsd" xmlns:xsi="http://xsi" xmlns:v1="http://v1"&gt;
      &lt;soapenv:Body&gt;
          &lt;v1:VM&gt;
              &lt;SH&gt;
                  &lt;a&gt;aa&lt;/a&gt;
                  &lt;b&gt;bb&lt;/b&gt;
              &lt;/SH&gt;
          &lt;/v1:VM&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I try to create the message using:</p>
  
  <pre><code>System.Xml.XmlReader XMLReader = System.Xml.XmlReader.Create(XMLStream);
  Message ModifiedReply = System.ServiceModel.Channels.Message.CreateMessage(OriginalReply.Version, null, XMLReader);
  </code></pre>
  
  <p>However when I print the Message content with Message.ToString() I get:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://env"&gt;
      &lt;s:Header /&gt;
          &lt;s:Body&gt;
              ... stream ...
          &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>How can I prevent "...stream..." and get the actual XML parts?</p>