>If it's always going to be that way, with the data being in "item" tags
>which are
>actually siblings, and no "item" tags which aren't your data, perhaps
>something like
> var soapResponse = soapCall.invoke();
> // deal with fault issues, return if needed
> var node= soapResponse.message.getElementsByTagName("item")[0]; //
>first item.
> var res=node.nodeValue;
> while(null!=(node=node.nextSibling))res+=node.nodeValue;
> return res;
Hmm, this is really close. I'm just grabbing the whole array of "item"
matches, rather than the first one, and then iterating through them. I
end up with the right number of matches, but Mozilla seems to think each
element has empty data.
Basically, it looks like this:
var nodes = soapResponse.message.getElementsByTagName("item")
for (i = 0;i < nodes.length;i++) {
var nodeData = nodes[i].nodeValue;
}
The nodeData is always empty though. I also tried "nodeData =
nodes[i].value" with the same results.
So close!
-Roy