From d318ce0ad8e44971d8334c21f91a68ebbdc80466 Mon Sep 17 00:00:00 2001 From: Wise Simpson Date: Wed, 12 Jan 2022 12:21:32 +0100 Subject: [PATCH] Update README.md Correct a typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5592feaa..0ee8b105 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ var xml = ''; // 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'); }) @@ -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'); })