PJ445
PJ445

Reputation: 23

Length of String Returning 0

I have a variable name soapXML which is of type XML. I am trying to turn it to a stiring (which the a channelMap confirms) but when I try to get the length it is always when I know that is not the case. Why is this happening?

var aaaaaa = soapXML.toString()
channelMap.put('a', typeof(aaaaaa))
channelMap.put('b', aaaaaa.length)

EDIT:

console.log(typeof soapXML)
var aaaaaa = soapXML.toString()
channelMap.put('A', aaaaaa) //Blank String
channelMap.put('B', typeof(aaaaaa)) //String
channelMap.put('C', aaaaaa.length) //0.0

Upvotes: 0

Views: 123

Answers (0)

Related Questions