title: Node.js JSON to XML - serialize a complex object
body: <p>I'm attempting to convert a complex JSON object to XML using <a href="https://www.npmjs.com/package/xml" rel="nofollow noreferrer">this package - XML</a>.</p>
  <pre><code> var xml = require(&quot;xml&quot;);
   var obj = {  MS : { ts : 3423523, isOk : false , errors : [] }};
   var xmlObj = xml(obj); //  This outputs &lt;MS/&gt; 
  </code></pre>
  <p>Any ideas how to make the XML parser go deeper? Why is it prematurely closed?</p>