title: What's the best JSON or JS object to XML converter module for Node JS
body: <p>I need to build a relatively simple XML document with some hierarchy and some attributes from a JS object. I stand now before choosing one of these modules:</p>
  
  <ul>
  <li><a href="https://github.com/davidcalhoun/jstoxml" rel="noreferrer">https://github.com/davidcalhoun/jstoxml</a></li>
  <li><a href="https://github.com/soldair/node-jsontoxml" rel="noreferrer">https://github.com/soldair/node-jsontoxml</a></li>
  <li><a href="https://github.com/QuickenLoans/node-easyxml" rel="noreferrer">https://github.com/QuickenLoans/node-easyxml</a></li>
  <li><a href="https://github.com/michaelkourlas/node-js2xmlparser" rel="noreferrer">https://github.com/michaelkourlas/node-js2xmlparser</a></li>
  </ul>
  
  <p>Which module should I pick?</p>
  
  <p><em>This question will probably be dismissed as being not a good question, but I don't know how to ask it any differently.</em></p>
  
  <p><em>Disclaimer: I posted the same question as an issue on each repository</em></p>
  
  <p>This is the XML that I want to build:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;orders&gt;
      &lt;order&gt;
          &lt;order_orderid&gt;123123&lt;/order_orderid&gt;
          &lt;order_customerid&gt;345345&lt;/order_customerid&gt;
          &lt;order_senhcode&gt;7604&lt;/order_senhcode&gt;
          &lt;order_mediacode&gt;qwert&lt;/order_mediacode&gt;
          &lt;order_totalshippingcost&gt;0&lt;/order_totalshippingcost&gt;
          &lt;order_paymentmethod&gt;GB&lt;/order_paymentmethod&gt;
          &lt;order_paymentnumber /&gt;
          &lt;order_htmltext /&gt;
          &lt;order_comment /&gt;
          &lt;shippingmethodid&gt;02&lt;/shippingmethodid&gt;
          &lt;order_creditcardnumber /&gt;
          &lt;order_creditcardnameholder /&gt;
          &lt;order_creditcardexpiredate /&gt;
          &lt;order_creditcardsafetycode /&gt;
          &lt;order_gifttext /&gt;
          &lt;inv_customer&gt;
              &lt;inv_customer_addresstypeid /&gt;
              &lt;inv_customer_gendermale&gt;0&lt;/inv_customer_gendermale&gt;
              &lt;inv_customer_firstname&gt;qwerty&lt;/inv_customer_firstname&gt;
              &lt;inv_customer_initials&gt;Q.W.E&lt;/inv_customer_initials&gt;
              &lt;inv_customer_prename /&gt;
              &lt;inv_customer_lastname&gt;Qwerty&lt;/inv_customer_lastname&gt;
              &lt;inv_customer_company&gt;Some company&lt;/inv_customer_company&gt;
              &lt;inv_customer_street&gt;Postbus&lt;/inv_customer_street&gt;
              &lt;inv_customer_housenumber&gt;13&lt;/inv_customer_housenumber&gt;
              &lt;inv_customer_housenumberadditional /&gt;
              &lt;inv_customer_postalcode&gt;1234 AB&lt;/inv_customer_postalcode&gt;
              &lt;inv_customer_city&gt;THERE&lt;/inv_customer_city&gt;
              &lt;inv_customer_isocodecountry&gt;NL&lt;/inv_customer_isocodecountry&gt;
              &lt;inv_customer_email&gt;a@b.nl&lt;/inv_customer_email&gt;
              &lt;inv_customer_telephone&gt;0168-123456&lt;/inv_customer_telephone&gt;
              &lt;inv_customer_mobilenr&gt;06-12345678&lt;/inv_customer_mobilenr&gt;
          &lt;/inv_customer&gt;
          &lt;orderlines&gt;
              &lt;orderline&gt;
                  &lt;orderline_orderrecordid&gt;1234&lt;/orderline_orderrecordid&gt;
                  &lt;orderline_orderid&gt;8765432&lt;/orderline_orderid&gt;
                  &lt;orderline_articlenr&gt;164-05-366&lt;/orderline_articlenr&gt;
                  &lt;orderline_quantity&gt;2&lt;/orderline_quantity&gt;
                  &lt;orderline_productdescription&gt;Some gift voucher&lt;/orderline_productdescription&gt;
                  &lt;orderline_price&gt;1233&lt;/orderline_price&gt;
              &lt;/orderline&gt;
              &lt;orderline&gt;
                  &lt;orderline_orderrecordid&gt;5678&lt;/orderline_orderrecordid&gt;
                  &lt;orderline_orderid&gt;8765432&lt;/orderline_orderid&gt;
                  &lt;orderline_articlenr&gt;164-05-367&lt;/orderline_articlenr&gt;
                  &lt;orderline_quantity&gt;3&lt;/orderline_quantity&gt;
                  &lt;orderline_productdescription&gt;Some other gift voucher&lt;/orderline_productdescription&gt;
                  &lt;orderline_price&gt;1244&lt;/orderline_price&gt;
              &lt;/orderline&gt;
          &lt;/orderlines&gt;
      &lt;/order&gt;
  &lt;/orders&gt;
  </code></pre>