XSD :

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" elementFormDefault="qualified">
<xsd:simpleType name="employee">
    <xsd:restriction base="xsd:string">    
    </xsd:restriction>
  </xsd:simpleType>
 <xsd:simpleType name="member">
     <xsd:restriction base="xsd:string">
    </xsd:restriction>
  </xsd:simpleType>
<xsd:element name="person">
  <xsd:complexType>
    <xsd:choice minOccurs="2" maxOccurs="2">
      <xsd:element name="employee" type="employee"/>
      <xsd:element name="member" type="member"/>
    </xsd:choice>
  </xsd:complexType>
</xsd:element>
</xsd:schema>
View Code

相关文章:

  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-01-02
  • 2021-07-24
猜你喜欢
  • 2022-01-20
  • 2021-12-03
  • 2022-02-08
  • 2021-12-14
  • 2021-06-01
  • 2021-09-05
  • 2021-10-27
相关资源
相似解决方案