Article Directory :: Computers & Technology Articles

XML Schema Design: Best Practices

By Jamie Simpson

Subscribe to Jamie Simpson's RSS feed using any feed reader!

Republish: EasyPublish
Published: 04Sep2010
Word count: 400
Viewed: 302 time(s)
Bookmark this article using any bookmark manager!
Get Free Content For Your Site

What is an XML Schema? An XML schema is an approach to describe an XML document containing data and other elements by providing specifications that are beyond to XML itself. A typical XML schema contains rules the elements should adhere to, the data type, its attributes, constraints and much more. Various languages such as Document Definition Type, Relax NG, XML Schema, Name Space Routing Language, Document Schema Definition Language, Schematron, SGML contribute to the design of XML schema on an XML editor.

XML design is based on two main processes namely XML coding that involves the task of syntactic aptness followed by validation which is done by the parser specific to the language the design uses. The valid document that complies to the defined schema is said to be a valid instance of the schema. The design of a schema if approached conventionally is a time consuming process, hence several best practices are widely used in this aspect which are explained below.

1) The default namespace in a schema can be either "XMLschema" or "targetNamespace" depending on the designer's personal preference. In case of absence of default namespace, the above namespaces are used to explicitly qualify references and components.

2) By creating two identical copies of schemas which differ from each other in the value of elementFormDefault with one set to "qualified" and the other set to "unqualified", the designer will be able to hide/localize or expose the namespaces based on the functionality, during exports and imports of schemas. Avoiding global declaration of elements and attributes is preferred so as to make elementFormDefault act as a switch.

3) "Russian Doll design" is used where there is a need to minimize size and component coupling, Salami Slice design to accommodate document author's element substitution and Venetial Blind design for easy namespace switching and reuse of the components.

4) The schema component must be easier to identify by its id specification, i.e, the id value should be long enough to include types, elements and attributes.

5) Decision to binding the schema components to the namespace or binding a type reference to an implementation should be postponed.

6)Creating extensible schemas gives much needed flexibility to switch to older schemas during implementation.

7)Awareness of limitations on data types is essential while designing the schema.

8)XML editor with XSLT or Schmeatron is a good way to express business rules not handled by XML Schemas and some other languages.

Find out more information regarding a XML Editor

Bookmark this article using any bookmark manager! Subscribe to Jamie Simpson's RSS feed using any feed reader!

EasyPublish™ this article - publishers click here

More articles by Jamie Simpson

Free Report!
Ten Essential Secrets Of Article Marketing ... Grab Your Free
Copy
Now:




We respect your privacy.


Need Content?
Regular Top Quality Content for your Blog, Ezine or Website ...
Delivered Direct,
For Free!

Click For Details



Arts & Entertainment
Automotive
Business - General
Computers & Technology
Finance & Investment
Food & Drink
Health & Fitness
Home & Family
Internet Marketing/Online Business
Legal
Pets & Animals
Politics & Government
Reference & Education
Religion & Faith
Self-Improvement/Motivation
Social
Sports & Recreation
Travel & Leisure
Writing & Speaking

More computing articles:

  • Newest Development On DVD To Video Conversion (Janelle Elizabeth)
    DVD is an acronym for Digital Versatile Disc or Digital Video Disc. It's a visual disc storage media structure for video, sound experience and computer data.

  • Samsung Star 3 Promises New Things For You (San Lee)
    Samsung is known to be one of the biggest manufacturers of electronics in the world.

  • Samsung Wave M Is Still Good For Consumers (San Lee)
    The Samsung Wave M was launched back in the middle of 2011 and it was not a great success on the market. However, since then this model became more and more popular and now it can be seen as one of the best cell phone deals.

  • What The Superior SDSL Companies Might Give To Your Company (Dirik Hameed)
    SDSL services are extremely helpful with a variety of broadband queries

  • Advantages Of Using An International Sim Card (Stacy Robinson)
    A sim card is one of the vital components of a mobile phone. It is charged with the storage of important information including contacts and messages that must be activated to ensure that the phone operates efficiently and meets the needs of the user. A sim card can be either post paid or pre paid depending on the vendor of the card that one uses. However, today, technology has seen the advent of international sim cards.

  • Using An International SIM Card Will Get You Lower Mobile Phone Charges (Stacy Robinson)
    Any regular traveler will agree that international calling rates can appear baffling, pricey and very daunting. The reason for this is that the rates and terms will differ from provider to provider and from one location to the other. While taking some time to research may sound like an credible idea, it may turn out to be quite nerve wrecking. The simple solution is to make use of an international sim card to make the rates more affordable.

  • Why You Should Be Using Tool Management Software (A. Noton)
    Tool management software offers several benefits to those who are trying to construct or even repair a business. Tools happen to play a vital role in both the production and manufacturing aspects of a business or company. They essentially serve the same purpose in both huge enterprises as well as small businesses.

  • 4 Approaches To Solve IPhone Freezing Troubles (Patricia Strasser)
    A few of the ways to fix iPhone freezing issues are the following: restarting your iPhone, resetting your iPhone, restoring factory configurations, and carrying your iPhone to an Apple service center.

We Automatically Distribute Articles
To Thousands Of Publishers And Web Sites:

Submit Article
All content is viewed and used by you at your own risk and we do not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributing authors and not necessarily those of this web site, or its owner, Takanomi Limited.
 
Copyright © 2012 Takanomi Ltd. Company no. 5629683. All rights reserved. | Privacy | Legal | Contact Information