Thats a bad idea since it depends on the order of the nodes and a single TEXT node will screw it up. You should be using the getElementsByTagName() method, specifying the "DfhCommarea" tag name - this will ensure that you are working with the right element when looking for attributes.
Joined: Dec 28, 2002
Thanks for the tip Bill!!
Here's the complete working code for getting attributes from XML response.
Values and tags are added to name/value pair for return..