470,815 Members | 2,263 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Problem with XML Scheme Facet

Hello
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, while string restriction on length do work
to me.

I am working with a licensed version of - Microsoft Visual C# .NET

Microsoft .Net Framework 1.1
Is there a problem with the version?

Thank you in advance

Hilel

Jul 10 '06 #1
2 944


hil12345 wrote:

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?
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jul 10 '06 #2
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

Jul 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

699 posts views Thread by mike420 | last post: by
176 posts views Thread by Thomas Reichelt | last post: by
reply views Thread by Philippe Poulard | last post: by
reply views Thread by Frosty | last post: by
3 posts views Thread by mimi | last post: by
11 posts views Thread by Gerald I. Evenden | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.