Skip to main content


developerWorks  >  XML  >

Design XML schemas for enterprise data

Use W3C XML Schema features to design data formats for production management

developerWorks

Level: Intermediate

Bilal Siddiqui (xml4java@yahoo.co.uk), Consultant, Freelance

03 Oct 2006

Register now or sign in using your IBM ID and password.

This tutorial teaches you how to use W3C XML Schema features in different types of enterprise applications. You'll learn when, why, and how to use simple and complex types, regular expressions, unions, lists, and substitution groups while designing data formats for your enterprise applications. You'll also learn how to build multiple file schemas, use external schemas in your XML design, and reuse other schema designers' experience by deploying XML design patterns.

In this tutorial

The tutorial will be of value for you if you want to learn when and why to use important features in the XML Schema specification to design production-grade XML schemas for enterprise applications. You can also benefit from this tutorial if you want to learn how to reuse the experience of other schema designers.

This tutorial demonstrates the use of W3C XML Schema features in defining data formats for enterprise applications.

First, you'll learn the major types of enterprise applications and their data-interchange requirements, and why you need to define schema for enterprise XML data. You'll also learn the use of patterns to design high-level business documents and XML structures in enterprise applications. Then, using production data as an example, you will start to design an enterprise XML schema that uses various XML Schema features in enterprise data design. You'll learn:

  • How to define and extend complex types
  • When and how to define abstract complex types and abstract elements
  • How to use regular expressions (string patterns), enumerations, unions, lists, and substitution groups

You'll also learn why and how to develop multiple file schemas, and about using external schemas to design your enterprise data. Finally, you will put the pieces together to design high-level business documents.


Objectives

  • Design complex types

  • Build elements using complex types

  • Define and use abstract complex types and abstract elements

  • Build customized simple types

  • Group elements for substitution

  • Use string patterns, enumerations, unions, and lists

Prerequisites

You should be able to write well formed XML 1.0 documents. You should also have a beginner-level understanding of XML schemas. This includes the ability to use simple types in XML schema to build complex types. For material you can read to fulfill these prerequisites, see Resources in the tutorial.


System requirements

You will need JavaScript enabled in your browser.

A simple Java application named InstanceVerifier is included in the source code download for this tutorial (see Download in the tutorial). You'll use InstanceVerifier to validate XML instance documents against the XML schema you develop in this tutorial. The source code download also includes several XML instance documents to help you understand schema concepts.

InstanceVerifier uses XML schema support that comes with Java Development Kit (JDK) version 1.5. So, you must download and install JDK 1.5 from the Sun Web site to try the schema and instance documents developed in this tutorial (see Resources in the tutorial).



Duration

2 hours





Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community