如何在c#中使用Windows窗体中的xml数据而不使用任何集合对象 [英] How to utilize xml data in windows forms in c# without using any collection object

查看:34
本文介绍了如何在c#中使用Windows窗体中的xml数据而不使用任何集合对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用xml数据而不将其转换为Windows窗体中的任何其他集合类型... ???



我尝试过:



http://www.c-sharpcorner.com/blogs/how-to-use-a-web-service-in-windows- form-application1

https://msdn.microsoft.com/en-us/library/scf355x6%28v=vs.90%29.aspx

https:// msdn.microsoft.com/library/ff855828(v=vs.100).aspx

How can i use xml data without converting it into any other collection type in windows forms...???

What I have tried:

http://www.c-sharpcorner.com/blogs/how-to-use-a-web-service-in-windows-form-application1
https://msdn.microsoft.com/en-us/library/scf355x6%28v=vs.90%29.aspx
https://msdn.microsoft.com/library/ff855828(v=vs.100).aspx

推荐答案

看看LINQ2XML类和方法。您的启动方法可以是 XElement.Parse 来加载XML字符串。
Take a look at LINQ2XML classes and methods. Your starting method could be XElement.Parse to load the XML string.


这篇关于如何在c#中使用Windows窗体中的xml数据而不使用任何集合对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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