|
Subject:
|
how to get xml tag name
|
|
Posted By:
|
project2n5e0o1
|
Post Date:
|
12/11/2006 4:29:16 PM
|
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 By:
|
joefawcett
|
Reply Date:
|
12/15/2006 8:51:37 AM
|
Use XPath instead, what similarities exist between all the response XML files?
--
Joe (Microsoft MVP - XML)
|