mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
force parsexml node to be async (just in case)
This commit is contained in:
parent
f2b7fada9d
commit
3c32186a9d
@ -31,7 +31,8 @@ function Xml2jsNode(n) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
try {
|
try {
|
||||||
parseString(msg.payload, function (err, result) {
|
parseString(msg.payload, {strict:true,async:true}, function (err, result) {
|
||||||
|
//parseString(msg.payload, {strict:false,async:true}, function (err, result) {
|
||||||
if (err) { node.error(err); }
|
if (err) { node.error(err); }
|
||||||
else {
|
else {
|
||||||
msg.payload = result;
|
msg.payload = result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user