asp.net解析xml;高手…………
<?xml version="1.0" encoding="utf-8"?><notepad x="HU7fd191" y="54654">
<topic line="dfdsf" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="sss">主题</topic>
<topic line="fdfd" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="中国海南航空公司">主题</topic>
</notepad>
<notepad x="HU71fdf91" y="54654">
<topic line="fdf" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="fdsfds">主题</topic>
<topic line="HU7fdf191" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="fdsfd">主题</topic>
</notepad>
<notepad x="HU7fd191" y="54654">
<topic line="HUfdfd7191" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="dsf">主题</topic>
<topic line="HU7191" a="dsfdsfdsfds" b="fsdfdsfdsfdsfdsffd324353" company="fdsfdsf">主题</topic>
</notepad>
高手帮助把这个xml用asp.net(C#)给解析出来;在先等…………
--------------------编程问答-------------------- 解析成什么呢? --------------------编程问答-------------------- 就是通过asp.net转换成页面显示的效果啊 --------------------编程问答-------------------- 什么样的效果? --------------------编程问答-------------------- 其实xslt就可以满足要求了……如果是不需要特别的功能 --------------------编程问答-------------------- 你这个XML怎么有多个根级的呢 --------------------编程问答-------------------- 也就是我需要解析xml这个里面的内容把,显示到页面上面去的 --------------------编程问答-------------------- 先readxml读到DataSet中,然后绑定DataSet.
还有更简便的方法吗? --------------------编程问答-------------------- xslt最简单 --------------------编程问答-------------------- 直接把xml内容赋给一个lable控件就可以了 --------------------编程问答-------------------- 请把代码发布下 --------------------编程问答-------------------- .
补充:.NET技术 , ASP.NET