Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript XML HTML
How do i display this .xml in .html or .asp in a basic table.
 
<category>
	<event name="Match1" date="20120908">
		<bettype bet-start-date="20120908" bet-start-time="1700">
			<bet had-value="HOME" name="Homewin" price="8/13"/>
			<bet had-value="DRAW" name="Draw" price="5/2"/>
			<bet had-value="AWAY" name="Awaywin" price="9/2"/>
		</bettype>
	</event>
	<event name="Match2" date="20120909">
		<bettype bet-start-date="20120909" bet-start-time="1600">
			<bet had-value="HOME" name="Homewin" price="13/10"/>
			<bet had-value="DRAW" name="Draw" price="85/40"/>
			<bet had-value="AWAY" name="Awaywin" price="2/1"/>
		</bettype>
	</event>
</category>
 

on to something like this
 

	<tr>
		<td> </td>
		<td>Home win</td>
		<td>Draw</td>
		<td>Away Win</td>
	</tr>
	<tr>
		<td>Match1</td>
		<td>8/13</td>
		<td>5/2</font></td>
		<td>9/2</font></td>
	</tr>
	<tr>
		<td>Match2</td>
		<td>13/10</font></td>
		<td>85/40</font></td>
		<td>2/1</font></td>
	</tr>
</table>
Posted 17-Sep-12 3:14am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 305
1 OriginalGriff 275
2 Sergey Alexandrovich Kryukov 207
3 Peter Leow 185
4 Afzaal Ahmad Zeeshan 154
0 OriginalGriff 7,460
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,954
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100