View Single Post
  #1 (permalink)  
Old December 11th, 2006, 05:29 PM
project2n5e0o1 project2n5e0o1 is offline
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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;

Reply With Quote