maztheozzie
Programmer
Hi guys,
Noob question...
I have a XML structure as follows;
<PRODUCT DEFINITION>
<PRODUCT OPTION ID=1990>128</PRODUCT OPTION>
<PRODUCT OPTION ID=1290>CC</PRODUCT OPTION>
<PRODUCT OPTION ID=1430>1</PRODUCT OPTION>
...
</PRODUCT DEFINITION>
I want to define a XSD definition to limit what values can be entered for the <PRODUCT OPTION> element based on what the attribute ID has been set to. For example, ID=1430 allows only 1,2,3 whereas ID=1431 alows a,b,c.
Is this possible??? I have read through a stack of documentation without much luck so any help is much appreciated!
Thanks in advance.
Cheers,
Maz
Noob question...
I have a XML structure as follows;
<PRODUCT DEFINITION>
<PRODUCT OPTION ID=1990>128</PRODUCT OPTION>
<PRODUCT OPTION ID=1290>CC</PRODUCT OPTION>
<PRODUCT OPTION ID=1430>1</PRODUCT OPTION>
...
</PRODUCT DEFINITION>
I want to define a XSD definition to limit what values can be entered for the <PRODUCT OPTION> element based on what the attribute ID has been set to. For example, ID=1430 allows only 1,2,3 whereas ID=1431 alows a,b,c.
Is this possible??? I have read through a stack of documentation without much luck so any help is much appreciated!
Thanks in advance.
Cheers,
Maz