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)

Go to topic 53635

Return to index page 92
Return to index page 91
Return to index page 90
Return to index page 89
Return to index page 88
Return to index page 87
Return to index page 86
Return to index page 85
Return to index page 84
Return to index page 83