force parsexml node to be async (just in case)

This commit is contained in:
Dave C-J 2013-11-15 09:15:26 +00:00
parent f2b7fada9d
commit 3c32186a9d
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ function Xml2jsNode(n) {
var node = this;
this.on("input", function(msg) {
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); }
else {
msg.payload = result;