myxml.xsd
来自「Visual_C++.NET实用编程百例」· XSD 代码 · 共 32 行
XSD
32 行
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="myXML" targetNamespace="http://tempuri.org/myXML.xsd" elementFormDefault="qualified"
attributeFormDefault="qualified" xmlns="http://tempuri.org/myXML.xsd" xmlns:mstns="http://tempuri.org/myXML.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="myXML" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="student">
<xs:complexType>
<xs:sequence>
<xs:element name="studentName" type="userName" />
<xs:element name="studentInfo" type="person" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:simpleType name="userName">
<xs:restriction base="xs:string">
<xs:length value="2" />
<xs:pattern value="2" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="person">
<xs:sequence />
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="address" type="xs:string" />
<xs:attribute name="telphone" type="xs:string" />
</xs:complexType>
</xs:schema>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?