B
Billy
I have a current xsd that allows the xml to have 0..1 chassisid element
and 0..1 terminalid element. But now I want to restrict these elements
in a way that either both chassisid and terminalid are supplied or
neither are supplies never just one of the elements is ever supplied.
I believe this can be done but the restriction I have is that I cannot
change the structure of the xml file, i.e. by nesting a new section for
chassisid/terminalid.
e.g.
xsd:
....
<xs:element name="chassisid" type="xs:string" minOccurs="0"
maxOccurs="1"/>
<xs:element name="terminalid" type="xs:string" minOccurs="0"
maxOccurs="1"/>
....
xml:
....
<chassisid>A123456789</chassisid>
<terminalid>A2345678</terminalid>
....
If you can help then many thanks.
Regards
Billy
and 0..1 terminalid element. But now I want to restrict these elements
in a way that either both chassisid and terminalid are supplied or
neither are supplies never just one of the elements is ever supplied.
I believe this can be done but the restriction I have is that I cannot
change the structure of the xml file, i.e. by nesting a new section for
chassisid/terminalid.
e.g.
xsd:
....
<xs:element name="chassisid" type="xs:string" minOccurs="0"
maxOccurs="1"/>
<xs:element name="terminalid" type="xs:string" minOccurs="0"
maxOccurs="1"/>
....
xml:
....
<chassisid>A123456789</chassisid>
<terminalid>A2345678</terminalid>
....
If you can help then many thanks.
Regards
Billy