title: How to response XML with node.js express?
body: <p>I want to response this using node.js and express:</p>
  
  <pre><code>&lt;set id="1" state="0" name="wd"/&gt;
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>xml = require('xml');
  
  res.set('Content-Type', 'text/xml');
  res.send(xml('&lt;set id="1" state="0" name="wd"/&gt;'));
  </code></pre>
  
  <p>But in <code>Wireshark</code> i see that my response looks:</p>
  
  <pre><code>&amp;lt;set id=&amp;quot;1&amp;quot; state=&amp;quot;0&amp;quot; name=&amp;quot;wd&amp;quot;/&amp;gt;
  </code></pre>
  
  <p>How to send my xml correctly?</p>