Comparing version 0.6.1 to 0.6.2
@@ -184,3 +184,8 @@ var sax = require("sax"); | ||
parser.onattribute = function (node) { current.setAttribute(node.name, node.value); }; | ||
parser.ontext = function (t) { stack[stack.length - 1].addChild(t); }; | ||
parser.ontext = function (t) { | ||
if(stack.length > 0) { | ||
var parent = stack[stack.length - 1]; | ||
parent.addChild(t); | ||
} | ||
}; | ||
parser.onclosetag = function (node) { current = stack.pop(); }; | ||
@@ -187,0 +192,0 @@ parser.onend = function (node) { cb(null,current) }; |
{ | ||
"name": "xmlobject", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Convert javascript objects to and from xml strings.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11001
213