From 25f5e8a980b86a4a7b13ddac911c5d6e958c6780 Mon Sep 17 00:00:00 2001 From: amit kumar gupta Date: Sun, 22 Jan 2023 11:05:33 +0530 Subject: [PATCH] Fix docs for unpairdTags example in XMLBuilder --- docs/v4/3.XMLBuilder.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/v4/3.XMLBuilder.md b/docs/v4/3.XMLBuilder.md index 2cf83e21..acd92557 100644 --- a/docs/v4/3.XMLBuilder.md +++ b/docs/v4/3.XMLBuilder.md @@ -263,7 +263,7 @@ const xmlData = ` `; const options = { - // suppressEmptyNode: true, + // suppressUnpairedNode: true, unpairedTags: ["unpaired"] }; const parser = new XMLParser(options); @@ -277,21 +277,20 @@ Output value - - - + + + -``` -when you sets `suppressUnpairedNode: true`; +Now if you set `suppressUnpairedNode: false`. You'll get following output ```xml - value - - - - + value + + + + ```