xml的一个简单的格式:
<?xml version="1,0" encoding="JB2312"?>
<root> //根节点Root
<Name Attribute>Value</Name>
<Name Attribute /> //要是没有Value,就直接用/表示结束
</root>
每一个节点叫做Element
xml文件只能有一个根节点。Xml就是用一种格式化的方式来存储数据,并且是文本文件任何时候我们都能很容易的用记事本打开。
我们在C#中读取与写入的时候用XDocument加载xml文件。