From fa42fbdab8fbb3112b38c6c8d925ab8685f758f2 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 26 Sep 2015 13:46:35 +0100 Subject: [PATCH] Let XML node options be set let msg.options to set a lot more options if required --- nodes/core/parsers/70-XML.html | 13 ++++++++----- nodes/core/parsers/70-XML.js | 18 +++++++++++++----- package.json | 2 +- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/nodes/core/parsers/70-XML.html b/nodes/core/parsers/70-XML.html index 2671e68fb..da5ba6115 100644 --- a/nodes/core/parsers/70-XML.html +++ b/nodes/core/parsers/70-XML.html @@ -23,10 +23,10 @@
- +
- +
@@ -36,7 +36,10 @@

A function that parses the msg.payload to convert xml to/from a javascript object. Places the result in the payload.

If the input is a string it tries to parse it as XML and creates a javascript object.

If the input is a javascript object it tries to build an XML string.

-

See the xml2js docs here for more information.

+

You can also pass in a msg.options object to overide all the multitude of parameters. See + the xml2js docs here + for more information.

+

If set, options in the edit dialogue override those passed in on the msg.options object.