add node_modules

This commit is contained in:
life
2015-09-24 13:31:53 +08:00
parent 69b27ef5f0
commit 6eba2b2924
646 changed files with 82380 additions and 6 deletions

26
node_modules/xml2js/x.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var util = require('util');
var xml2js = require('xml2js');
var myxml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> \
<Items> \
<Item> \
<id>1</id> \
<color>green</color> \
</Item> \
<Item> \
<id>2</id> \
<color>red</color> \
</Item> \
<Item> \
<id>3</id> \
<color>yellow</color> \
</Item> \
</Items>"
var myxml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\
<empty />"
xml2js.parseString(myxml, function (e, r) {
console.log(util.inspect(r, false, null));
//console.log(new xml2js.Builder().buildObject(r));
});