将xml数据存储在数组列表中 [英] store xml data in array list
本文介绍了将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 astring
in anArrayList
.
On the other hand if you require an object representation of the underlying XML structure you can use aDataSet
to read the data or Deserialize into an object class which maps to the structure using theXmlSerializer
.
这篇关于将xml数据存储在数组列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文