读取xml文件并以Windows窗体显示表格格式 [英] Read xml file and display table format in windows form

查看:81
本文介绍了读取xml文件并以Windows窗体显示表格格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


首先创建xml文件并添加数据.创建数据集并读取xml文件(ds.readxml").之后将表格式转换为ds.tables [0].并将数据按顺序存储在另一个xml文件中.请帮助我解决此问题.

"XML在w3c学校" ),然后查看简单的XML文件样本(您会在网上找到大量的文件样本).
您可以使用相同的方法来满足其他要求.

顺便说一句,如果您有特定问题(适合问答),请随时在此处询问我们.


检查本文.如何读取xml并将其保存到数据表,以及如何将其写回xml.

XML到DataSet或GridView并返回 [ ^ ]

Hi,
First Create xml file and add data . create dataset and read xml file (ds.readxml"").after to convert table format ds.tables[0].and store data in another xml file in order.plese help me to solve this problem.

解决方案

Well that is your homework, so it is up to you.
Start with the first requirement: create the XML file. If you don''t know how to then study the XML format (see, for instance: "XML at w3c schools") and have a look at simple XML file samples (you''ll find tons of those, on the net).
You may use the same method to fulfill the other requirements.

By the way, if you have a specific question (suitable for Q&A) then feel free to ask us here.


Check this article. How to read xml and get it to datatable and how to write it back to xml.

XML to DataSet or GridView and back[^]


这篇关于读取xml文件并以Windows窗体显示表格格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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