Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / 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