Hi,
I am in the process of creating a schema definition to validate some
XML data that will look like the following:
ProductA
SubProductA
SubProductB
SubProductC
ProductB
SubProductX
SubProductY
SubProductZ
Now I would like if possible to create a simple type called say
"Product" which has Enum content of:
Enum:"ProductA"
Enum:"ProiductB "
......
......
Then also have another simple type for the "SubProduct " with it's Enum
values as follows:
Enum:"SubProduc tA"
Enum:"SubProduc tB"
EnumL:"SubProdu ctX"
......
I am struggling in deciding the best way to structure the complex Type
so that the Structure is enforcing the fact that SubProductX can only
be a SubProduct of ProductB......
I would like the flexability to be able to simply add a new
ProductType and enforce the relevant subtypes allowed to be detailed
with them.
Am fairly new to XSD (3 Weeks in) Any help much appreciated.