M
mnickel67
Hi,
I'm still learning, so apologies if this is trivial...
Given the following XML snippet:
<Record>
<foo id="a">... </foo>
<foo id="b">....</foo>
<foo id="c">.....</foo>
</Record>
Is it possible to create an xsd file that enforces that within the
<Record> block there exists exactly three foo tags each containing a
different id value (from the enum a, b, and c )? My attempts to
define complexTypes for each of the foo elements has resulted in a
validation error indicating that the element foo needs to be defined
with a consistent type.
I'm still learning, so apologies if this is trivial...
Given the following XML snippet:
<Record>
<foo id="a">... </foo>
<foo id="b">....</foo>
<foo id="c">.....</foo>
</Record>
Is it possible to create an xsd file that enforces that within the
<Record> block there exists exactly three foo tags each containing a
different id value (from the enum a, b, and c )? My attempts to
define complexTypes for each of the foo elements has resulted in a
validation error indicating that the element foo needs to be defined
with a consistent type.