title: WSO2 Enrich Mediator
body: <p>[WSO2 ESB V4.5.0]
  What is wrong with how I'm configuring the enrich mediator to accumulate XML?  I have a sequence of n PojoMediators that retrieve XML from a database with each setting a context property with the XML represented as a string.  For example, after the first PojoMediator executes, its' context property is set to:</p>
  
  <pre><code>  customerInformation = &lt;cust&gt;&lt;id&gt;1&lt;/id&gt;&lt;oc&gt;&lt;/oc&gt;&lt;ca&gt;0&lt;/ca&gt;&lt;/cust&gt;
  </code></pre>
  
  <p>and I'm trying to enrich the body with that XML content but end up with:</p>
  
  <pre><code>[snip]
    &lt;/header&gt;
  &amp;lt;cust&gt;&amp;lt;id&gt;1&amp;lt;/id&gt;&amp;lt;oc&gt;&amp;lt;/oc&gt;&amp;lt;ca&gt;0&amp;lt;/ca&gt;&amp;lt;/cust&gt;&lt;/root&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; {org.apache.synapse.mediators.builtin.LogMediator}
  </code></pre>
  
  <p>..where the enrich mediator is escaping the referenced "custInfo" XML.  My enrich configuration is: </p>
  
  <pre><code>&lt;enrich&gt;
      &lt;source type="property" property="custInfo"/&gt;
      &lt;target type="body"/&gt;
  &lt;/enrich&gt;
  </code></pre>
  
  <p>Is there a means to coerce the enrich mediator to treat the property ("custInfo") as an XML fragment rather than as straight text?  I'm assuming that this is why the XML is getting escaped as the mediator believes it is setting the content of a node rather than specifying an XML fragment.</p>