1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Deprecate xml2js and jsn2xml nodes

Replaced by single XML node
This commit is contained in:
Dave C-J 2014-05-14 14:15:46 +01:00
parent 789b86b122
commit 0e35b65afd
4 changed files with 5 additions and 3 deletions

View File

@ -15,11 +15,12 @@
**/
module.exports = function(RED) {
"use strict";
var util = require("util");
var parseString = require('xml2js').parseString;
var useColors = true;
//util.inspect.styles.boolean = "red";
function Xml2jsNode(n) {
RED.nodes.createNode(this,n);
this.useEyes = n.useEyes||false;

View File

@ -15,13 +15,14 @@
**/
module.exports = function(RED) {
"use strict";
var js2xmlparser = require("js2xmlparser");
function Js2XmlNode(n) {
RED.nodes.createNode(this,n);
this.root = n.root;
var node = this;
this.on("input", function(msg) {
try {
var root = node.root || typeof msg.payload;