在列表视图中显示外部xml数据 [英] show external xml data in listview

查看:54
本文介绍了在列表视图中显示外部xml数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有这个xml

Hello I have this xml

<scores sport="soccer">
<category name="Spain: Primera Division" id="1399" file_group="spain">
<matches date="Dec 18" formatted_date="18.12.2011">
<match status="FT" date="Dec 18" formatted_date="18.12.2011" time="20:30" fix_id="865721" id="865721">
<localteam name="Valencia" goals="2" id="16261"/>
<visitorteam name="Malaga" goals="0" id="16050"/>
<events>
<event type="yellowcard" minute="31" team="localteam" player="Banega" result="" playerId="20356" eventid="8657211"/>
<event type="goal" minute="36" team="localteam" player="Soldado" result="[1 - 0]" playerId="3967" eventid="8657212"/>
<event type="yellowcard" minute="39" team="localteam" player="Albelda" result="" playerId="327" eventid="8657213"/>
<event type="yellowcard" minute="43" team="visitorteam" player="Mathijsen" result="" playerId="21" eventid="8657214"/>
<event type="yellowcard" minute="59" team="localteam" player="Miguel" result="" playerId="375" eventid="8657215"/>
<event type="goal" minute="61" team="localteam" player="Soldado" result="[2 - 0]" playerId="3967" eventid="8657216"/>
<event type="yellowcard" minute="72" team="visitorteam" player="Demichelis" result="" playerId="2046" eventid="8657217"/>
<event type="yellowcard" minute="87" team="localteam" player="Hernandez" result="" playerId="58781" eventid="8657218"/>
</events>
<ht score="[1-0]"/>
</match>
</match>
</matches>
</category>
</scores>



完整链接是www.koorabet.com/spain.xml
我需要使用asp.net c#连接并在listview中显示此xml数据

我正在连接并且只有线路



The Full link is www.koorabet.com/spain.xml
I need to connect and show this xml data in listview using asp.net c#

I am connecting and having only the line

<category name="Spain: Primera Division" id="1399" file_group="spain">


使用<%#xPath%>和<%#Eval%>

但是我无法在行中存储数据.


using <%#xPath%> and <%#Eval%>

But I can''t have the data in the line.

<matches date="Dec 18" formatted_date="18.12.2011">
<match status="FT" date="Dec 18" formatted_date="18.12.2011" time="20:30" fix_id="865721" id="865721">
<localteam name="Valencia" goals="2" id="16261"/>
<visitorteam name="Malaga" goals="0" id="16050"/>
<events>
<event type="yellowcard" minute="31" team="localteam" player="Banega" result="" playerId="20356" eventid="8657211"/>
<event type="goal" minute="36" team="localteam" player="Soldado" result="[1 - 0]" playerId="3967" eventid="8657212"/>
<event type="yellowcard" minute="39" team="localteam" player="Albelda" result="" playerId="327" eventid="8657213"/>
<event type="yellowcard" minute="43" team="visitorteam" player="Mathijsen" result="" playerId="21" eventid="8657214"/>
<event type="yellowcard" minute="59" team="localteam" player="Miguel" result="" playerId="375" eventid="8657215"/>
<event type="goal" minute="61" team="localteam" player="Soldado" result="[2 - 0]" playerId="3967" eventid="8657216"/>
<event type="yellowcard" minute="72" team="visitorteam" player="Demichelis" result="" playerId="2046" eventid="8657217"/>
<event type="yellowcard" minute="87" team="localteam" player="Hernandez" result="" playerId="58781" eventid="8657218"/>
</events>
<ht score="[1-0]"/>
</match>



所以,请我帮忙,我准备付钱完成工作.

谢谢,您可以给我发送电子邮件[删除电子邮件地址]



So please I need someone to help me, and I am ready to pay money to have the job completed.

Thank you u can email me [email address removed]

推荐答案

检查此内容:


http://expression.microsoft.com/en-us/ee307362 [ http://www.4guysfromrolla.com/articles/042308-1.aspx [ ^ ]
check this:


http://expression.microsoft.com/en-us/ee307362[^]


and this:


http://www.4guysfromrolla.com/articles/042308-1.aspx[^]


这篇关于在列表视图中显示外部xml数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆