title: Why won't Mule properly parse XML returned from a webservice?
body: <p>I'm a bit new to this, but I'm having a problem that must have a straightforward solution I don't know about.</p>
  
  <p>I'm using the HTTP connector to call out to a webservice, and the webservice returns valid XML. I can't then automatically return the XML unmodified or I get</p>
  
  <pre><code>No serializer found for class org.glassfish.grizzly.utils.BufferInputStream and no properties discovered to create BeanSerializer
  </code></pre>
  
  <p>So I guess that's because the response is streamed and I need to do Byte Array to [whatever] first. However, when I do this, quotes and new line characters get escaped like this</p>
  
  <pre><code>"&lt;?xml version=\"1.0\"?&gt;\r\n&lt;root xmlns=\"http://xmlns.whatever.com"&gt;&lt;PERSON type=\"staff\"&gt;&lt;ID&gt;&lt;![CDATA[00100762]]&gt;&lt;/ID&gt;&lt;/PERSON&gt;&lt;/root&gt;"
  </code></pre>
  
  <p>If I try to use the transformer to turn it into a plain string, xml, json, or whatever, I end up with all these escaped characters. If I transform into a string, I will get the entire payload inside double quotes as shown above. If I transform that into XML, I end up with a single element containing the escaped XML string.</p>
  
  <p>I've written a little node.js app that also consumes this webservice and it is able to parse the response without any problems, so what's the deal with Mule? Calling out to a webservice and getting a response I can parse should be the most basic thing and I can't make it work.</p>