Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 5 - Generating Restrictions in XML Schema Dyna...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Generating Restrictions in XML Schema Dynamically Using VB.NET 2005: Preliminaries
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2006-03-15

    Table of Contents:
  • Generating Restrictions in XML Schema Dynamically Using VB.NET 2005: Preliminaries
  • Restrictions (or constraints) in XML Schema: VB.NET sample
  • Restrictions (or constraints) in XML Schema: explanation
  • Extending the previous restriction with minExclusive
  • Differences between xxxExclusive and xxxInclusive

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!

    Generating Restrictions in XML Schema Dynamically Using VB.NET 2005: Preliminaries - Differences between xxxExclusive and xxxInclusive


    (Page 5 of 5 )

    This has caused a lot of confusion among several beginners when they design a new XML Schema.  Let us consider the following fragment of XML Schema:

    <xs:element name="age">
          <xs:simpleType>
                <xs:restriction base="xs:integer">
                      <xs:minExclusive value="1" />
                      <xs:maxExclusive value="100" />
                </xs:restriction>
          </xs:simpleType>
    </xs:element>

    According to the above code fragment, both values are “exclusive” during validation.  That means the “Age” element can have data between 2 and 99 (both inclusive) only.  Let us consider the following code fragment:

    <xs:element name="age">
          <xs:simpleType>
                <xs:restriction base="xs:integer">
                      <xs:minInclusive value="1" />
                      <xs:maxInclusive value="100" />
                </xs:restriction>
          </xs:simpleType>
    </xs:element>

    According to the above code fragment, both values are “inclusive” during validation.  That means the “Age” element can have data between 1 and 100 (both inclusive) only.  We can also mix them according to our necessity.  Let us consider the following code fragment:

    <xs:element name="age">
          <xs:simpleType>
                <xs:restriction base="xs:integer">
                      <xs:minExclusive value="1" />
                      <xs:maxInclusive value="100" />
                </xs:restriction>
          </xs:simpleType>
    </xs:element>

    According to the above code fragment, the “Age” element can have data between 2 and 100 (both inclusive) only.  Let us consider the following code fragment:

    <xs:element name="age">
          <xs:simpleType>
                <xs:restriction base="xs:integer">
                      <xs:minInclusive value="1" />
                      <xs:maxExclusive value="100" />
                </xs:restriction>
          </xs:simpleType>
    </xs:element>

    According to the above code fragment, the “Age” element can have data between 1 and 99 (both inclusive) only.

    I hope the above examples clear up any confusion among the usage of “Inclusive” and “Exclusive” facets available when making restrictions in XML Schema.

    The upcoming article will dig further into the details of restrictions using .NET.  So keep notified by signing up for a newsletter.  Any comments, suggestions, feedback, bugs, errors, enhancements are highly appreciated at jag_chat@yahoo.com


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Hi, now you can work with restrictions in XML Schema using VB 2005. Any feedback is...
     

    VISUAL BASIC.NET ARTICLES

    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...
    - Overloading and Overriding in Visual Basic.N...
    - More on Controlling Windows Fax Services Usi...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway