We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1832e0b commit d318ce0Copy full SHA for d318ce0
README.md
@@ -113,7 +113,7 @@ var xml = '<foo></foo>';
113
114
// With parser
115
var parser = new xml2js.Parser(/* options */);
116
-parser.parseStringPromise(data).then(function (result) {
+parser.parseStringPromise(xml).then(function (result) {
117
console.dir(result);
118
console.log('Done');
119
})
@@ -122,7 +122,7 @@ parser.parseStringPromise(data).then(function (result) {
122
});
123
124
// Without parser
125
-xml2js.parseStringPromise(data /*, options */).then(function (result) {
+xml2js.parseStringPromise(xml /*, options */).then(function (result) {
126
127
128
0 commit comments