XML数据到数据集中 [英] XML data into dataset
本文介绍了XML数据到数据集中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个XML文件.我想在重新加载页面时将XML数据存储在数据集或arraylist中,并在页面加载时在页面中显示图像名称吗?我能知道我该怎么做吗?
请在这方面帮助我... !!
谢谢
i have an XML file. i want to store a xml data in dataset or arraylist & on pageload when page is reload the name of a image is in this cannot show in the page? can i know how can i do this?
please help me in this...!!
thanks
推荐答案
它可能对您有帮助,
It might help you,
How to read data from XML file in C#.Net
中[ reading-data-from-xml-file-using-c/ [ ^ ]
:)
[^]
reading-data-from-xml-file-using-c/[^]
:)
,您可以使用ReadXml
使用指定文件读取XML模式和数据,以将其存储在Dataset中.
you can useReadXml
to read XML schema and data using specified file to store it in Dataset.
DataSet ds = new DataSet();
System.IO.FileStream fs = new System.IO.FileStream("XMlFileName", System.IO.FileMode.Open);
ds.ReadXml(fs);
这篇关于XML数据到数据集中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文