> I Wonder if any one could give me a hand, I am trying to implement a
> numeric type restriction on an xml scheme.
>
> Somehow in doesn't work,
Can you post a minimal schema and minimal XML instance document showing
the problem?
What exactly does not work, do you get problems parsing/compiling the
schema or validating the instance document?

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
hil12345 - 12 Jul 2006 09:07 GMT
Hello Martin
Thanks for your quick response.
About the problem I stated, well, all seems to work fine I mean Scheme
validation, Generate DataSet, but when I try to test the restriction
by a datagrid binded to the Table , it doesn't work.
That is I somehow can key any number .
What do you think the problem is?
Here is the xml code I try to test
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="XMLSchema2"
targetNamespace="http://tempuri.org/XMLSchema2.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema2.xsd"
xmlns:mstns="http://tempuri.org/XMLSchema2.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="element1">
<xs:complexType>
<xs:sequence>
<xs:element name="aaa">
<xs:simpleType>
<xs:restriction base="xs:short">
<xs:maxExclusive value="100" />
<xs:minExclusive value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I thanks in advance
Hilel