Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i display this .xml in .html or .asp in a basic table.

XML
<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


HTML
	<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

1 solution

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900