W
wooks
I have defined a schema with an xsd:choice element for 2 mutually
exclusive fields.
When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."
The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.
So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.
exclusive fields.
When both are present I get an error which is good, but what is not so
good is the error message which says something like "Element content
is invalid. Expecting: fieldname, {...."
The problem (if it is one) is that the "Expecting: fieldname..." bit
is wrong - fieldname is not the next field... in fact it's optional.
However it seems to have tagged the the correct field (the mutually
exclusive one) as being in error.
So is there truly an error here or is it simply a case of a crappy
somewhat misleading error message.