Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2006

Tip: Looking for answers? Try searching our database.

Problem with XML Scheme  Facet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hil12345 - 10 Jul 2006 11:21 GMT
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
Martin Honnen - 10 Jul 2006 13:53 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.