text.coffee 213 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 fs = require 'fs' xml2js = require 'xml2js' parser = new xml2js.Parser fs.readFile 'canon.xml', (err, data) -> console.log err parser.parseString (err, result) -> console.log err console.dir result