title: why Multipart/form-data removing Nill in response Mule Dataweave
body: <p>Please find my request having tag <code>&lt;Date xsi:nil="true"/&gt;</code> when it crosses the <code>Multipart/form-data</code> dataweave it is removing the <code>xsi:nil="true</code> part which is not expected in my scenario. I wanted that to be out as the same.</p>
  
  <p>Also it is removing the namespace which is not the expected case. If i trying declaring <code>ns xsi http://www.w3.org/2001/XMLSchema-instance</code> in the first dataweave. In the response  root element it is prefixing <code>xsi:Locations</code>. 
  Im struggling with this.</p>
  
  <p>Wanted the response as mentioned below, whatever the input is same should come out without altering.</p>
  
  <p>Using <code>writeNilOnNull=true</code> is putting nill on all the fields which i dont want either, wanted only for date. </p>
  
  <p>Could anyone help on this. Thank you.</p>
  
  <p>Input:</p>
  
  <pre><code>&lt;Locations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Location&gt;
      &lt;Id&gt;2&lt;/Id&gt;
      &lt;CarId&gt;78&lt;/CarId&gt;
      &lt;Packages&gt;1&lt;/Packages&gt;
      &lt;Date xsi:nil="true"/&gt;
     &lt;/Location&gt;
  &lt;/Locations&gt;
  </code></pre>
  
  <p>Expected Response:</p>
  
  <pre><code> &lt;Locations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Location&gt;
      &lt;Id&gt;2&lt;/Id&gt;
      &lt;CarId&gt;78&lt;/CarId&gt;
       &lt;Packages/&gt;
      &lt;Date xsi:nil="true"/&gt;
     &lt;/Location&gt;
  &lt;/Locations&gt;
  </code></pre>
  
  <p>Flow:</p>
  
  <pre><code>        &lt;flow name="question" doc:id="8c836a85-9d0a-47a8-8e5a-f670b16f91eb" &gt;
          &lt;http:listener doc:name="Listener" doc:id="52ffdb08-9587-4cb2-8232-9467e85ea0dc" config-ref="HTTP_Listener_config" path="/question"/&gt;
          &lt;ee:transform doc:name="Transform Message" doc:id="da995adf-196b-4c7b-a265-874f059ed1bb" &gt;
              &lt;ee:message &gt;
                  &lt;ee:set-payload &gt;&lt;![CDATA[%dw 2.0
  output application/xml 
  ---
  payload]]&gt;&lt;/ee:set-payload&gt;
              &lt;/ee:message&gt;
          &lt;/ee:transform&gt;
          &lt;ee:transform doc:name="Transform Message" doc:id="75e5d876-855e-4d38-8468-3484c859f36e" &gt;
              &lt;ee:message &gt;
                  &lt;ee:set-payload &gt;&lt;![CDATA[%dw 2.0
  output multipart/form-data 
  ---
  {
    "parts": {
      "file": {
        "headers": {
          "Content-Disposition": {
            "name": "file",
            "filename": "",
            "subtype": "form-data"
          },
          "Content-Type": "application/xml"
        },
        "content": payload
      }
    }
  }]]&gt;&lt;/ee:set-payload&gt;
              &lt;/ee:message&gt;
          &lt;/ee:transform&gt;
      &lt;/flow&gt;
  &lt;/mule&gt;
  </code></pre>