Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP Javascript XML HTML
How do i display this .xml in .html or .asp in a basic table.
 
I would not like links to other sites, i'd just like the code to make it work. as ive tried every help site and cant figure it out.
<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 20-Sep-12 2:21am
Edited 20-Sep-12 4:48am
v2
Comments
Manfred R. Bihy at 20-Sep-12 8:25am
   
You've tried every help site and can' figure it out.
The first part of your statement I seriously doubt, to the second part I feel a strong affinity.
 
Demanding code is considered rude behaviour. If you feel a link is not enough for you to learn from you probably won't even learn from given code.
 
Sorry!
Member 9435887 at 20-Sep-12 9:09am
   
I wasnt demanding code, i was asking for help. If i could see the code in the way i've asked i would have alot better understanding.
 
Tadit Dash at 20-Sep-12 8:28am
   
In which language you want to do this task ?
Member 9435887 at 20-Sep-12 9:08am
   
jscript or whatever is best. I just want xml to html.

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 Sergey Alexandrovich Kryukov 530
1 mhegazy94 460
2 Ravi Bhavnani 230
3 Kornfeld Eliyahu Peter 185
4 Shemeemsha RA 160
0 Sergey Alexandrovich Kryukov 7,205
1 OriginalGriff 6,801
2 CPallini 5,350
3 George Jonsson 3,644
4 Gihan Liyanage 2,797


Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 20 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