From 6e76e5c7ba1d67244898e1da27cc858169746773 Mon Sep 17 00:00:00 2001 From: Yousuf Almarzooqi Date: Thu, 27 Apr 2017 12:08:29 +0400 Subject: [PATCH] Committed by npm script. --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce7dea4..dd3f2d3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ because output like `{a:{_:{x:"1"}}, b:{_:{x:"2"}}, a:{_:{x:"3"}}}` is illegal ( The non-compact output, which is supported by this library, will produce more information and always gurantees the order of the elements as they appeared in the XML file. -Another drawback of compact output is the resultant element can be an object or an array and therefore makes the client code a little awkwards in terms of extra check of object type before processing. +Another drawback of compact output is the resultant element can be an object or an array and therefore makes the client code a little awkwards in terms of the extra check needed on object type before processing. NOTE: Although non-compact output is more accurate representation of original XML than compact version, the non-compact version is verbose and consumes more space. This library provides both options. Use `{compact: false}` if you are not sure because it preserves everything; diff --git a/package.json b/package.json index 327efc8..95d9c15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xml-js", - "version": "1.1.0", + "version": "1.2.0", "description": "A convertor between XML text and Javascript object / JSON text.", "repository": { "type": "git",