diff --git a/src/xmlbuilder/json2xml.js b/src/xmlbuilder/json2xml.js index 6696b9f8..813043f3 100644 --- a/src/xmlbuilder/json2xml.js +++ b/src/xmlbuilder/json2xml.js @@ -249,7 +249,7 @@ function indentate(level) { } function isAttribute(name /*, options*/) { - if (name.startsWith(this.options.attributeNamePrefix)) { + if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) { return name.substr(this.attrPrefixLen); } else { return false;