vpulim/node-soap — pull request #349 by vhwang (2014-05-13 19:40:01+00:00)
Title: Fix for adding an undefined XML namespace to the generated XML's child x...

...mlns attribute.

Converting a JSON object into XML was adding an undefined XML namespace attribute to a child element. This change checks if the childXmlns is defined before allowing the childXmlnsAttribute to be created. If the chidlXmlns is not defined then no xmlns is added to the child.

For example the following JSON object would generate this XML:
```
var args = "Operation": {
"CreateUser": {
"User": {
"A": aVar,
"B": bVar,
"C": cVar,
"D": dVar,
"E": eVar,
"F": fVar
},
"G":""
}
}
client.admin(args, function(err, result) {};
```
Created XML with undefined xmlns in child XML Attribute:
```

aVal
bVal
cVal
dVal
eVal
fVal

```

Expected XML / XML generated with this change:
```

aVal
bVal
cVal
dVal
eVal
fVal

```