Skip to content

Instantly share code, notes, and snippets.

@MrLeebo
Created January 20, 2015 00:04
Show Gist options
  • Save MrLeebo/0b4aa75ae2e2101000d7 to your computer and use it in GitHub Desktop.
Save MrLeebo/0b4aa75ae2e2101000d7 to your computer and use it in GitHub Desktop.
var request = require('request');
var xml2js = require('xml2js');
request('http://example.com/my.xml', function(err, resp, body) {
xml2js.parseString(body, function(err, xml) {
// ...
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment