p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Ajax (http://p2p.wrox.com/forumdisplay.php?f=210)
-   -   how to get xml tag name (http://p2p.wrox.com/showthread.php?t=51413)

project2n5e0o1 December 11th, 2006 05:29 PM

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;


joefawcett December 15th, 2006 09:51 AM

Use XPath instead, what similarities exist between all the response XML files?

--

Joe (Microsoft MVP - XML)


All times are GMT -4. The time now is 07:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.