title: How to access the XML which comes out of Dataweave
body: <p>I try to access the elements under xml which is comes out of DataWeave. It gives returns me null values.</p>
  
  <p>DataWeave Script is</p>
  
  <pre><code>%dw 1.0
  %namespace ns0 urn:abc:dbc:Components
  %output text/xml
  ---
  ItemFee:{
      product_id:flowVars."Dept_id",
      TotalFees: sum payload.ns0#ItemResponse.ns0#Fees.*ns0#Fee.ns0#Fee
  }
  </code></pre>
  
  <p>Immediate after to this dataweave i have logger node with below message.</p>
  
  <pre><code>#[message.payload.ItemFee.TotalFees]
  </code></pre>
  
  <p>I am getting error saying</p>
  
  <pre><code>Execution of the expression "message.payload.ItemFee.TotalFees" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: WeaveMessageProcessor$WeaveOutputHandler
  </code></pre>
  
  <p>I like to say one more point here. When i give below text in the logger immediate after 'Transform Message'. The message printed in the console without issue. But i could not access the elements in the xml message.<code>#[message.payloadAs(java.lang.String)]</code></p>