xml<?xml version="1.0" standalone="yes"?>
<users>
<xs:schema id="users" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="users" msdata:IsDataSet="true" msdata:Locale="zh-CN">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="user">
<xs:complexType>
<xs:sequence>
<xs:element name="userName" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
<xs:element name="userPass" type="xs:string" minOccurs="0" msdata:Ordinal="1" />
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<user id="1">
<userName>outrace</userName>
<userPass>mypass</userPass>
</user>
<user id="2">
<userName>trace</userName>
<userPass>mypass2</userPass>
</user>
</users>
C#对XML操作:建立XML(3)
80酷酷网 80kuku.com