Skip to content

Commit

Permalink
Merge pull request #635 from wisesimpson/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Leonidas-from-XIV committed Jan 12, 2022
2 parents 1832e0b + d318ce0 commit f412a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -113,7 +113,7 @@ var xml = '<foo></foo>';

// With parser
var parser = new xml2js.Parser(/* options */);
parser.parseStringPromise(data).then(function (result) {
parser.parseStringPromise(xml).then(function (result) {
console.dir(result);
console.log('Done');
})
Expand All @@ -122,7 +122,7 @@ parser.parseStringPromise(data).then(function (result) {
});

// Without parser
xml2js.parseStringPromise(data /*, options */).then(function (result) {
xml2js.parseStringPromise(xml /*, options */).then(function (result) {
console.dir(result);
console.log('Done');
})
Expand Down

0 comments on commit f412a12

Please sign in to comment.