L
LJ
I am trying to define two xml attribute in my xsd so that they are
mutual exclusive and one of them is required.
For example, if I have two attributes, they are either
<xsd:attribute name="p" type="xsd:string" use="required" />
<xsd:attribute name="c" type="xsd:string" use="optional" />
or
<xsd:attribute name="p" type="xsd:string" use="optional" />
<xsd:attribute name="c" type="xsd:string" use="required" />
how can I specify this in the xsd?
Thx
mutual exclusive and one of them is required.
For example, if I have two attributes, they are either
<xsd:attribute name="p" type="xsd:string" use="required" />
<xsd:attribute name="c" type="xsd:string" use="optional" />
or
<xsd:attribute name="p" type="xsd:string" use="optional" />
<xsd:attribute name="c" type="xsd:string" use="required" />
how can I specify this in the xsd?
Thx