C#对XML操作:建立XML(3)

发表于:2007-06-30来源:作者:点击数: 标签:
?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" x
<?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 maxOclearcase/" target="_blank" >ccurs="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>
 

原文转自:http://www.ltesting.net