摘要: XML主要的功能是用来存储数据的。好处,用文本格式进行保存。不需要安装其他软件打开。XML和HTML的区别:1.有且只能有一个根元素。2.XML中的元素必须关闭。3.XML中元素的属性值必须用引号。4.XML大小写敏感。XML读取1.获取xmlXDocument xdoc=XDocument.Load("路径");2.获取根元素XElement root=xdoc.Root;3.获取元素.IEnumerableXElements=root.Elements();4.获取元素IAttribute Attributeitem-XElementitem.Attributes(); 阅读全文
posted @ 2013-10-13 20:24 偏执的放纵 阅读(170) 评论(0) 推荐(0) 编辑