将xml数据存储在数组列表中 [英] store xml data in array list

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

问题描述

如何将XML数据存储到Arraylist中.

how can i store a XML Data into Arraylist.

推荐答案

XML是文本格式,因此您可以将其作为string存储在.

另一方面,如果您需要底层XML结构的对象表示形式,则可以使用DataSet来读取数据或反序列化为使用XmlSerializer映射到该结构的对象类.
XML is a text format, so your can store it as a string in an ArrayList.

On the other hand if you require an object representation of the underlying XML structure you can use a DataSet to read the data or Deserialize into an object class which maps to the structure using the XmlSerializer.


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

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