Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / xml2js / xml2js.js
234 bytesRaw
1 | ; |
2 | |
3 | var parse = require('xml2js').parseString; |
4 | var xml = '<root>Hello xml2js!</root>'; |
5 | parse(xml, function (error, result) { |
6 | if (error) throw error; |
7 | if (result.root === 'Hello xml2js!') { |
8 | console.log('ok'); |
9 | } |
10 | }); |
11 |
Built with git-ssb-web