0

I need to read a value from an xml file and get that as an output.

<MessageReportEvent Id="9" Message="Traversal in 160.99495345777862" TimeStamp="1445229229"/>

The numeric value in the "Message" attribute is what I want to get

TMA
  • 111
  • 1
  • 2
  • 9
  • Try xml2js, see this for reference: http://stackoverflow.com/questions/14890655/the-best-node-module-for-xml-parsing – Mattias Lindberg Oct 19 '15 at 05:47
  • Or try [cheerio](https://github.com/cheeriojs/cheerio) npm package. Looks a lot like jQuery and can also handle HTML. – hgoebl Oct 19 '15 at 06:23

0 Answers0