myxmltest.xms

来自「XmlHelper子文件夹:XML Helper类库及测试程序的所有源代码及可执」· XMS 代码 · 共 35 行

XMS
35
字号
<?xml version="1.0" standalone="yes"?>
<xsd:schema id="MyRootNode" targetNamespace="" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xsd:element name="MyRootNode" msdata:IsDataSet="true">
    <xsd:complexType>
      <xsd:choice maxOccurs="unbounded">
        <xsd:element name="ChildFolder">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="ChildElementOfChildFolder" type="xsd:string" minOccurs="0" msdata:Ordinal="0" />
              <xsd:element name="SubFolderOfChildFolder" minOccurs="0" maxOccurs="unbounded">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="SubChildElement" type="xsd:string" minOccurs="0" msdata:Ordinal="0" />
                  </xsd:sequence>
                  <xsd:attribute name="Price" type="xsd:string" />
                  <xsd:attribute name="ChildFolder_Id" type="xsd:int" use="prohibited" />
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
            <xsd:attribute name="ChildFolder_Id" msdata:AutoIncrement="true" type="xsd:int" msdata:AllowDBNull="false" use="prohibited" />
            <xsd:attribute name="Price" type="xsd:string" />
          </xsd:complexType>
        </xsd:element>
      </xsd:choice>
    </xsd:complexType>
    <xsd:unique name="Constraint1" msdata:PrimaryKey="true">
      <xsd:selector xpath=".//ChildFolder" />
      <xsd:field xpath="@ChildFolder_Id" />
    </xsd:unique>
    <xsd:keyref name="ChildFolder_SubFolderOfChildFolder" refer="Constraint1" msdata:IsNested="true">
      <xsd:selector xpath=".//SubFolderOfChildFolder" />
      <xsd:field xpath="@ChildFolder_Id" />
    </xsd:keyref>
  </xsd:element>
</xsd:schema>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?