Click here to Skip to main content
12,953,743 members (54,006 online)
Rate this:
 
Please Sign up or sign in to vote.
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
Updated 20-Sep-12 4:48am
v2
Comments
Manfred R. Bihy 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 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 20-Sep-12 8:28am
   
In which language you want to do this task ?
Member 9435887 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
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2017
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