This is one that has been stumping me for a few days now. I have an
xml document that is based on a schema, and that schema is based on
another schema. When using XMLSpy 2004 Enterprise Edition, everything
is valid and well-formed. When I run it through my .NET in C#
validator it always throws this error -->
It is an error if maxExclusive is among the members of {facets} of
{base type definition} and {value} is greater than or equal to the
{value} of the parent maxExclusive. An error occurred at
.../CoreMain.xsd, (5909, 3).
The really weird thing is that i do not have a single maxExclusive in
any of my schemas! So I wonder how this error can occur when I do not
use the attribute of maxExclusive that is apparently throwing the
error. I do have this cought by a try catch block.
I went to line 5909 in my code and it is the beginning of an element
definition which follows:
<xs:simpleType name="DisbursementFeePaidType">
<xs:annotation>
<xs:documentation>The amount of origination
fees
subsidized</xs:documentation>
</xs:annotation>
<xs:restriction base="core:SmallCurrencyType">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="9999999999.99"/>
<xs:totalDigits value="12"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
incase it may be thought that the error is occuring with the element
before line 5909 here it is :
<xs:simpleType name="GuaranteeFeePaidType">
<xs:annotation>
<xs:documentation>The amount of guarantee
fees
subsidized</xs:documentation>
</xs:annotation>
<xs:restriction base="core:SmallCurrencyType">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="9999999999.99"/>
<xs:totalDigits value="12"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
And finally the SmallCurrencyType which is defined in those two
elements is:
<xs:simpleType name="SmallCurrencyType">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="9999999999.99"/>
</xs:restriction>
</xs:simpleType>
If anyone has any ideas or questions please let me know, its to the
point I want to throw the computer out the window, if i wasn't in a
cubicle.