diff --git a/lib/config-xml.js b/lib/config-xml.js index 67946dd..6a3f45a 100644 --- a/lib/config-xml.js +++ b/lib/config-xml.js @@ -20,7 +20,7 @@ ConfigXml.loadToJson = function(appDirectory, options) { fs.readFile(configXmlPath, { encoding: 'utf8' }, function(err, data) { if (err) return d.reject(err); - xml2js.parseString(data, function(err, configJson) { + xml2js.parseString(data, { preserveChildrenOrder: true }, function(err, configJson) { if (err) return d.reject(err); d.resolve(configJson); diff --git a/package.json b/package.json index 3a26ae1..aa2b1d1 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "unzip2": "0.2.5", "vinyl-fs": "1.0.0", "winston": "^1.0.1", - "xml2js": "0.4.4" + "xml2js": "0.4.9" }, "devDependencies": { "jasmine-node": "^1.14.5",