Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
dynamically Xml Convertion using xslt/Xpath in c#
deep galley
Jun 16 2012 12:41 AM
1.4k
Reply
I'm having xml like,
XML 1:
<?
xml version="1.0" encoding="UTF-8"
?>
-
<
OddsMatrixData
>
-
<
Sport
id
="
1
"
name
="
Football
"
>
-
<
Country
id
="
46
"
name
="
China
"
>
-
<
Tournament
id
="
191846310
"
name
="
Chinese Super League 2012
"
sortName
="
null
"
>
<
StartDate
type
="
GMT
"
>
2012-03-09 23:00:00
</
StartDate
>
-
<
Match
id
="
192469270
"
>
-
<
Participants
>
<
Participant
id
="
62570
"
type
="
home
"
name
="
Nanchang Hengyuan FC
"
/>
<
Participant
id
="
5562
"
type
="
away
"
name
="
Dalian Shide
"
/>
</
Participants
>
<
StartDate
type
="
GMT
"
>
2012-06-17 11:45:00
</
StartDate
>
-
<
MatchOdds
>
-
<
BettingOffer
typeId
="
9
"
scopeId
="
2
"
type
="
Double Chance
"
scope
="
Full time excluding overtime
"
>
<
Odds
id
="
11513064000901
"
outcome
="
X2
"
>
1.61
</
Odds
>
<
Odds
id
="
11513063800901
"
outcome
="
1X
"
>
1.32
</
Odds
>
<
Odds
id
="
11513063900901
"
outcome
="
12
"
>
1.29
</
Odds
>
</
BettingOffer
>
-
<
BettingOffer
typeId
="
47
"
scopeId
="
2
"
type
="
Over Under
"
scope
="
Full time excluding overtime
"
>
<
Odds
id
="
11519253804701
"
outcome
="
over
"
score
="
2.5
"
>
1.87
</
Odds
>
<
Odds
id
="
11520496604701
"
outcome
="
over
"
score
="
1.5
"
>
1.25
</
Odds
>
<
Odds
id
="
11520496704701
"
outcome
="
under
"
score
="
1.5
"
>
3.50
</
Odds
>
<
Odds
id
="
11520500904701
"
outcome
="
over
"
score
="
4.5
"
>
6.40
</
Odds
>
<
Odds
id
="
11519253904701
"
outcome
="
under
"
score
="
2.5
"
>
1.85
</
Odds
>
<
Odds
id
="
11520500704701
"
outcome
="
over
"
score
="
3.5
"
>
3.30
</
Odds
>
<
Odds
id
="
11520500804701
"
outcome
="
under
"
score
="
3.5
"
>
1.30
</
Odds
>
<
Odds
id
="
11520501004701
"
outcome
="
under
"
score
="
4.5
"
>
1.11
</
Odds
>
</
BettingOffer
>
</
MatchOdds
>
</
Match
>
</
Tournament
>
</
Country
>
</
Sport
>
</
OddsMatrixData
>
XML 2:
<
OddsMatrixData
>
-
<
Sport
id
="
1
"
name
="
Football
"
>
-
<
Country
id
="
46
"
name
="
China
"
>
-
<
Tournament
id
="
191846310
"
name
="
Chinese Super League 2012
"
sortName
="
null
"
>
<
StartDate
type
="
GMT
"
>
2012-03-09 23:00:00
</
StartDate
>
-
<
Match
id
="
192469270
"
>
-
<
Participants
>
<
Participant
id
="
62570
"
type
="
home
"
name
="
Nanchang Hengyuan FC
"
/>
<
Participant
id
="
5562
"
type
="
away
"
name
="
Dalian Shide
"
/>
</
Participants
>
<
StartDate
type
="
GMT
"
>
2012-06-17 11:45:00
</
StartDate
>
-
<
MatchOdds
>
-
<
BettingOffer
typeId
="
9
"
scopeId
="
2
"
type
="
Double Chance
"
scope
="
Full time excluding overtime
"
>
<
Odds
id
="
11513064000901
"
outcome
="
X2
"
>
1.61
</
Odds
>
<
Odds
id
="
11513063800901
"
outcome
="
1X
"
>
1.32
</
Odds
>
<
Odds
id
="
11513063900901
"
outcome
="
12
"
>
1.29
</
Odds
>
</
BettingOffer
>
-
<
BettingOffer
typeId
="
47
"
scopeId
="
2
"
type
="
Over Under
"
scope
="
Full time excluding overtime
"
>
<
Odds
id
="
11519253804701
"
outcome
="
over
"
score
="
2.5
"
>
1.87
</
Odds
>
<
Odds
id
="
11520496604701
"
outcome
="
over
"
score
="
1.5
"
>
1.25
</
Odds
>
<
Odds
id
="
11520496704701
"
outcome
="
under
"
score
="
1.5
"
>
3.50
</
Odds
>
<
Odds
id
="
11520500904701
"
outcome
="
over
"
score
="
4.5
"
>
6.40
</
Odds
>
<
Odds
id
="
11519253904701
"
outcome
="
under
"
score
="
2.5
"
>
1.85
</
Odds
>
<
Odds
id
="
11520500704701
"
outcome
="
over
"
score
="
3.5
"
>
3.30
</
Odds
>
<
Odds
id
="
11520500804701
"
outcome
="
under
"
score
="
3.5
"
>
1.30
</
Odds
>
<
Odds
id
="
11520501004701
"
outcome
="
under
"
score
="
4.5
"
>
1.11
</
Odds
>
</
BettingOffer
>
-
<
BettingOffer
typeId
="
46
"
scopeId
="
2
"
type
="
Home Away With Impossible Draw
"
scope
="
Full time excluding overtime
"
>
<
Odds
id
="
11513063611201
"
outcome
="
1
"
>
1.57
</
Odds
>
<
Odds
id
="
11513063711201
"
outcome
="
2
"
>
2.24
</
Odds
>
</
BettingOffer
>
</
MatchOdds
>
</
Match
>
</
Tournament
>
</
Country
>
</
Sport
>
</
OddsMatrixData
>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to detect external IP, with simple c# code (kind of like www.whatismyip.com)
Its a desktop application .I have fetched and displayed the record in DataGridView,now I want to edi...