Convert XML to JSON with NodeJS : <p>I'm trying to convert the following xml to json, thereby I need to get a mapping to the  TS-tc-dt</p>

<p>Here is the xml </p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;TestScenario&gt;
   &lt;TestSuite name="TS_EdgeHome"&gt;
      &lt;TestCaseName name="tc_Login"&gt;dt_EdgeCaseHome,dt_EdgeCaseRoute&lt;/TestCaseName&gt;
      &lt;TestCaseName name="tc_Logout"&gt;dt_EdgeCaseRoute&lt;/TestCaseName&gt;
   &lt;/TestSuite&gt;
   &lt;TestSuite name="TS_EdgePanel"&gt;
      &lt;TestCaseName name="tc_AddContract"&gt;dt_EdgeCaseHome,dt_EdgeCaseSpectrum&lt;/TestCaseName&gt;
   &lt;/TestSuite&gt;
      &lt;TestSuite name="TS_EdgeRoute"&gt;
      &lt;TestCaseName name="tc_VerifyContract"&gt;dt_EdgeCaseRoute&lt;/TestCaseName&gt;
      &lt;TestCaseName name="tc_Payment"&gt;dt_EdgeCaseRoute&lt;/TestCaseName&gt;
   &lt;/TestSuite&gt;
   &lt;TestSuite name="TS_EdgeSpectrum"&gt;
      &lt;TestCaseName name="tc_ClientFeedback"&gt;dt_EdgeCaseSpectrum&lt;/TestCaseName&gt;
   &lt;/TestSuite&gt;
&lt;/TestScenario&gt;
</code></pre>

<p>How can I achieve this in NodeJS?</p>
