title: Unable to set XML payload in variable in Mule4
body: <p>I'm a newbie on Mule4. My input message is XML which isn't being set in variable.</p>
  
  <p>I've tried it with different mime types as well, but doesn't work. It does work however when I'm sending the input in JSON format instead of XML.</p>
  
  <p>I'm using the following XML via postman</p>
  
  <pre><code>&lt;Weather&gt;
      &lt;City&gt;London,uk&lt;/City&gt;
      &lt;appid&gt;b6907d289e10d714a6e88b30761fae22&lt;/appid&gt;
      &lt;CIF&gt;CIF20257&lt;/CIF&gt;
  &lt;/Weather&gt;
  </code></pre>
  
  <p>And Configuration XML of my code in discussion is</p>
  
  <pre><code>&lt;set-variable value="#[payload.Weather.City]" doc:name="Set Variable" doc:id="b98b3ec8-c1f7-436d-9bcf-49eb0ca8a033" variableName="test" mimeType="application/xml"/&gt;
  </code></pre>
  
  <p>Error being displayed is</p>
  
  <blockquote>
    <p><strong>"javax.xml.stream.XMLStreamException - Trying to output non-whitespace characters outside main element tree (in prolog or
    epilog), while writing Xml. Trace: at main (Unknown)" evaluating
    expression: "payload.Weather.City".</strong></p>
  </blockquote>