scvinodkumar Posted August 13, 2009 Share Posted August 13, 2009 i have a xml file like ths <tags> <a href="http://www.roytanck.com/tag/150/" class="tag-link-66" title="2 topics" rel="tag" style="font-size: 20pt;" color="0xff0099">$150</a> <a href="http://www.roytanck.com/tag/3d/" class="tag-link-39" title="1 topics" rel="tag" style="font-size: 8pt;">3D</a> <a href="http://www.roytanck.com/tag/api/" class="tag-link-54" title="2 topics" rel="tag" style="font-size: 9.55556pt;">API</a> </tags> using javascript i need to display the url from the above xml. how to do this. please help me Link to comment https://forums.phpfreaks.com/topic/170073-xml-to-javascript/ Share on other sites More sharing options...
haku Posted August 13, 2009 Share Posted August 13, 2009 Combine getElementsByTagName() with getAttribute() Link to comment https://forums.phpfreaks.com/topic/170073-xml-to-javascript/#findComment-897167 Share on other sites More sharing options...
scvinodkumar Posted August 13, 2009 Author Share Posted August 13, 2009 sorry, i am new to xml, could u elaborate it if possible Link to comment https://forums.phpfreaks.com/topic/170073-xml-to-javascript/#findComment-897170 Share on other sites More sharing options...
haku Posted August 13, 2009 Share Posted August 13, 2009 getElementsByTagName() getAttribute That and google should be enough for you to figure it out. Link to comment https://forums.phpfreaks.com/topic/170073-xml-to-javascript/#findComment-897186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.