Skip to content

Instantly share code, notes, and snippets.

@danrasmuson
Created November 1, 2014 17:48
Show Gist options
  • Select an option

  • Save danrasmuson/79448ea89790aa59c6fc to your computer and use it in GitHub Desktop.

Select an option

Save danrasmuson/79448ea89790aa59c6fc to your computer and use it in GitHub Desktop.
npm install xml2js
var parseString = require('xml2js').parseString;
var xml = "<root>Hello xml2js!</root>"
parseString(xml, function (err, result) {
console.dir(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment