Home arrow XML arrow Page 2 - Understanding XML Schema

The Next Generation - XML

Imagine a technology that offered you all the power of a DTD without the associated unpleasantness of those strange symbols and arcane commands. Sounds too good to be true? Say hello to XML Schema.

TABLE OF CONTENTS:
  1. Understanding XML Schema
  2. The Next Generation
  3. An Evening At The Moulin Rouge
  4. Simple Simon
  5. A Complex Web
  6. Nesting Season
  7. Battle Of The Sexes
  8. Dealing With The Ref
  9. Different Flavours
  10. When In Rome...
  11. Test Drive
  12. The Next Step
By: Harish Kamath, (c) Melonfire
Rating: starstarstarstarstar / 3
October 15, 2001

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
In case you're new to the whole XML scene, I'll first take a couple of minutes to explain where schemas fit in.

You probably already know that XML is a toolkit to describe data; it allows document authors to "mark up" textual data with descriptive tags, thereby adding value to the data and making it more useful to the applications that process it. XML also offers document authors a way to enforce certain grammatical rules on an XML document via DTDs, or Document Type Definitions, which specify a structure and format for an XML document to be considered valid.

However, DTDs suffer from two glaring problems. First, they're not terribly user-friendly - creating a DTD requires a working knowledge of a bunch of arcane commands and constructs, and the end result is usually hard to read and understand. Second, although DTDs are designed to impose a structure on XML data, they are themselves not written in XML.

In order to address these two issues, and also to lay the groundwork for the next generation of XML data validation, the W3C created the XML Schema Working Group to create a new schema language for XML data validation.

A "schema", as the name suggests, is a blueprint for a specific class of XML document. It lays down rules for the types of elements and attributes allowed within an XML document, the types of values that accompany such elements, and the order and occurrence of these elements. It also addresses a number of issues which cannot be handled by the current generation of DTDs: datatyping (including the ability to derive new datatypes from existing ones), inheritance, grouping, and database linkage.

Specific XML documents (referred to by the Working Group as "document instances") can be linked to a schema and validated against the rules contained within it. The XML Schema specification specifies the process by which document instances and schemas are linked together, and a number of tools are now available to perform this validation.

Unlike DTDs, XML Schemas are constructed using standard XML syntactical rules, immediately making them easier to read, understand and maintain.

 
 
>>> More XML Articles          >>> More By Harish Kamath, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

XML ARTICLES

- Google Docs and Xpath Data Functions
- Flex Array Collection Sort and Filtering
- The Flex Tree Control
- Flex List Controls
- Working with Flex and Datagrids
- How to Set Up Podcasting and Vodcasting
- Creating an RSS Reader Application
- Building an RSS File
- An Introduction to XUL Part 6
- An Introduction to XUL Part 5
- An Introduction to XUL Part 4
- An Introduction to XUL Part 3
- An Introduction to XUL Part 2
- An Introduction to XUL Part 1
- XML Matters: Practical XML Data Design and M...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: