how to get xml tag name
How do I get an XML tag name if I dont know what it is going to be?
I have dynamically created XMLs sent to me and sometimes the tags will be different (contents of different table). typically I use the string below but if 'result' could be anything, what would I do? I need something like getElementsByTag[x] . thanks for your help!
xmlhttp.responseXML.getElementsByTagName('result')[0].firstChild.data;
|