Skip to content

Commit f412a12

Browse files
authoredJan 12, 2022
Merge pull request #635 from wisesimpson/patch-1
Update README.md
2 parents 1832e0b + d318ce0 commit f412a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var xml = '<foo></foo>';
113113

114114
// With parser
115115
var parser = new xml2js.Parser(/* options */);
116-
parser.parseStringPromise(data).then(function (result) {
116+
parser.parseStringPromise(xml).then(function (result) {
117117
console.dir(result);
118118
console.log('Done');
119119
})
@@ -122,7 +122,7 @@ parser.parseStringPromise(data).then(function (result) {
122122
});
123123

124124
// Without parser
125-
xml2js.parseStringPromise(data /*, options */).then(function (result) {
125+
xml2js.parseStringPromise(xml /*, options */).then(function (result) {
126126
console.dir(result);
127127
console.log('Done');
128128
})

0 commit comments

Comments
 (0)
Please sign in to comment.