What is purpose of xsd:union in XML Schema (XSD)?
问题 I am parsing XSD for some purpose but facing issues with some XSD nodes. What is the use of the union in XSD and why it is used. Is it used to put some sort of restriction on XML? I am attaching union and simple type node. Please explain why it is used ? <xsd:simpleType name="PeriodExtendedEnum"> <xsd:union memberTypes="PeriodEnum"> <xsd:simpleType> <xsd:restriction base="xsd:token"> <xsd:enumeration value="T" /> </xsd:restriction> </xsd:simpleType> </xsd:union> </xsd:simpleType> <xsd