From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/xml2js/x.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 node_modules/xml2js/x.js (limited to 'node_modules/xml2js/x.js') diff --git a/node_modules/xml2js/x.js b/node_modules/xml2js/x.js new file mode 100644 index 000000000..b51ce5704 --- /dev/null +++ b/node_modules/xml2js/x.js @@ -0,0 +1,24 @@ +var util = require('util'); +var xml2js = require('xml2js'); + +var myxml = " \ + \ + \ + 1 \ + green \ + \ + \ + 2 \ + red \ + \ + \ + 3 \ + yellow \ + \ +" + +xml2js.parseString(myxml, function (e, r) { + console.log(util.inspect(r, false, null)); + console.log(new xml2js.Builder().buildObject(r)); +}); + -- cgit v1.2.3