title: execute a nodejs program, not able to install module
body: <p>Can anyone please execute this node.js program for me? </p>
  
  <p>I am not able to install the xml-parser in windows.</p>
  
  <pre><code>//to install xml-parser module in windows type this in cmd:   npm install xml-parser
  var fs = require('fs'); 
  var parse = require('xml-parser');
  var xml = fs.readFileSync('sample_table.html');
      var get_parser = parse(xml);
      var in_csv = [];
      get_parser.root.children.forEach(function(tr) {
          data.push(tr.children.map(function(td) {
              return td.content;
          }).join(','));
      });
      in_csv = in_csv.join('\r\n');
      fs.writeFile('dates.csv', in_csv, function(err){
          if(err){
              return console.error(err);
      }
  </code></pre>
  
  <p>and this is sample_table.html</p>
  
  <pre><code>&lt;table&gt;
  &lt;tbody&gt;
  &lt;tr style="color:#333333;background-color:White;"&gt;
  &lt;td&gt;2016-04-28&lt;/td&gt;
  &lt;td&gt;RLYUDP-DP&lt;/td&gt;
  &lt;td&gt;RELIANCE FIXED HORIZON FUND XXX SERIES 18-- DIVIDEND PAYOUT&lt;/td&gt;
  &lt;td&gt;F204KB1254&lt;/td&gt;
  &lt;td&gt;10.0000&lt;/td&gt;
  &lt;td&gt;KARVY&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr style="color:#333333;background-color:White;"&gt;
  &lt;td&gt;2016-04-28&lt;/td&gt;
  &lt;td&gt;RLYUGP-GR&lt;/td&gt;
  &lt;td&gt;RELIANCE FIXED HORIZON FUND XXX SERIES 18- GROWTH&lt;/td&gt;
  &lt;td&gt;YUGP&lt;/td&gt;
  &lt;td&gt;10.0000&lt;/td&gt;
  &lt;td&gt;KARVY&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr style="color:#333333;background-color:White;"&gt;
  &lt;td&gt;2016-04-28&lt;/td&gt;
  &lt;td&gt;UTCXDP-DP&lt;/td&gt;
  &lt;td&gt;UTI-CAPITAL PROTECTION ORIENTED SCHEME - SERIES VII - IV 1278 DAD PLAN&lt;/td&gt;
  &lt;td&gt;CXDP&lt;/td&gt;
  &lt;td&gt;N&lt;/td&gt;
  &lt;td&gt;INF789FC1691&lt;/td&gt;
  &lt;td&gt;10.0000&lt;/td&gt;
  &lt;td&gt;KARVY&lt;/td&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;/tbody&gt;
    &lt;/table&gt;
  </code></pre>
  
  <p>or you can follow the direct link here <a href="https://github.com/suresach/nodejs_scraper" rel="nofollow">https://github.com/suresach/nodejs_scraper</a></p>