How to read xml data using javascript ?

Posted by Devendra under JavaScript on 11/12/2012 | Points: 10 | Views : 1725 | Status : [Member] | Replies : 1
<script language="javascript" type="text/javascript">
var txt = "<books>"+
"<book Name ='Name - 1' Author='A - 1' Published='2012' Price='10'/>"+
"<book Name ='Name - 2' Author='A - 2' Published='2012' Price='12'/>"+
"<book Name ='Name - 3' Author='A - 3' Published='2012' Price='22'/>"+
"<book Name ='Name - 4' Author='A - 4' Published='2012' Price='32'/>"+
"<book Name ='Name - 5' Author='A - 5' Published='2012' Price='42'/>"+
"<book Name ='Name - 6' Author='A - 1' Published='2012' Price='52'/>"+
"</books>";
</script>

How to read above data using javascript in html table ?

devendra


Responses

Posted by: Sandhyab on: 11/12/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Devendra,

Once go through below links. Hope this will help you.
http://www.codetoad.com/xml_javascripti_tutorial.asp
http://social.msdn.microsoft.com/Forums/pl-PL/netfxjscript/thread/29a2f351-5bb2-4edd-ac19-c2e4d3b6f4d0

Thanks & Regards
Sandhya


Devendra, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response