Hello All,

I am new to XML and this is my first post here .

Could anyone please explain that for me ?

Please copy the xml and generate an xsd from the link


My questions are below

How the PK and FK of schema and simpleType and enumeration are related

The xml I have has variable number of enumerations .

<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://bravvv.com/schemas/sp/ru/v1.0/Son" xmlns="http://bravvv.com/schemas/sp/ru/v1.0/Son"> <xs:simpleType name="transaction-type"> <xs:restriction base="xs:string"> <xs:maxLength value="1" /> <xs:enumeration value="B" /> <xs:enumeration value="S" /> <xs:enumeration value="Swl" /> <xs:enumeration value="Swi" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="transaction-se"> <xs:restriction base="xs:string"> <xs:maxLength value="1" /> <xs:enumeration value="Pri" /> <xs:enumeration value="Bod" /> <xs:enumeration value="Red" /> <xs:enumeration value="Caed" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="price-typ"> <xs:restriction base="xs:string"> <xs:maxLength value="1" /> <xs:enumeration value="Cron" /> <xs:enumeration value="Caion" /> <xs:enumeration value="Quid" /> <xs:enumeration value="Qufer" /> <xs:enumeration value="Sile" /> <xs:enumeration value="Fuver" /> <xs:enumeration value="Spal" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="basis-type"> <xs:restriction base="xs:string"> <xs:maxLength value="1" /> <xs:enumeration value="Ford" /> <xs:enumeration value="Hiric" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="deal-terms-type"> <xs:restriction base="xs:string"> <xs:maxLength value="1" /> <xs:enumeration value="Agssion" /> <xs:enumeration value="Diunt" /> <xs:enumeration value="Inarge" /> <xs:enumeration value="Rearge" /> <xs:enumeration value="DiLevy" /> <xs:enumeration value="Flarge" /> <xs:enumeration value="CDC" /> <xs:enumeration value="Wiax" /> </xs:restriction> </xs:simpleType> </xs:schema>