Schema learning two--indicators

Source: Internet
Author: User

<?XML version= "1.0" encoding= "UTF-8"?><Xs:schemaXmlns:xs= "Http://"elementFormDefault= "qualified"attributeFormDefault= "unqualified">    <!--Order Indicator -    <!--All indicator: child elements can appear in any order, and each child element must appear only once -    <xs:elementname= "Person">        <Xs:complextype>            <Xs:all>                <xs:elementname= "FirstName"type= "Xs:string"/>                <xs:elementname= "LastName"type= "Xs:string"/>            </Xs:all>        </Xs:complextype>    </xs:element>    <!--the appearance of the choice indicator element -    <xs:elementname= "Person">        <Xs:complextype>            <Xs:choice>                <xs:elementname= "Employee"type= "Xs:string"/>                <xs:elementname= "Member"type= "Xs:string"/>            </Xs:choice>        </Xs:complextype>    </xs:element>    <!--sequence indicator child elements must appear in a specific order -    <xs:elementname= "Person">        <Xs:complextype>            <xs:sequence>                <xs:elementname= "FirstName"type= "Xs:string"/>                <xs:elementname= "LastName"type= "Xs:string"/>            </xs:sequence>        </Xs:complextype>    </xs:element><!--Occurrence Indicator -    <!--maxoccurs indicator Specifies how often an element appears -    <xs:elementname= "Person">        <Xs:complextype>            <xs:sequence>                <xs:elementname= "Full_name"type= "Xs:string"maxOccurs= "unbounded"/>                <xs:elementname= "Child_name"type= "Xs:string"maxOccurs= "Ten"minOccurs= "1"/>            </xs:sequence>        </Xs:complextype>        </xs:element><!--Group Indicator -    <!--You must define an all, choice, or sequence element within the group declaration. The following example defines a group named "Persongroup", which defines a set of element definitions that must occur in an exact order and can be referenced in another definition . -    <Xs:groupname= "Persongroup">        <xs:sequence>            <xs:elementname= "FirstName"type= "Xs:string"/>            <xs:elementname= "LastName"type= "Xs:string"/>            <xs:elementname= "Birthday"type= "Xs:date"/>        </xs:sequence>    </Xs:group>    <xs:elementname= "Person"type= "Persongroup" />        <Xs:complextypename= "Personinfo">                <xs:sequence>                    <Xs:groupref= "Persongroup"/>                    <xs:elementname= "Country"type= "Xs:string"/>                </xs:sequence>        </Xs:complextype></Xs:schema>

Schema learning two--indicators

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.