|
This chapter introduces the W3C's XML Schema Recommendation and covers the mechanisms by which XML Schema allows us to define the elements and attributes we want to allow in our XML documents. We will also see how we can constrain element content and attribute values to have a particular datatype.
In particular this chapter will cover:
string, integer
and date
This chapter will serve simply as a starting point for you. There are lots of other topics that you need to understand in order to take full advantage of XML Schemas, and as we go through the chapters of this book, you will be building up your experience and writing increasingly complex schemas.
To get you familiar with these concepts, the XML documents in this chapter do not use XML Namespaces, and the markup we are creating does not belong to a namespace. If you wish to write documents that make use of namespaces make sure that you read Chapter 6 before writing your schemas.
# # #
* Copyright and Authorship Notice
This chapter has been written by Jon Duckett and is taken from "Professional XML Schemas" by Jon Duckett, Oliver Griffin, Stephen Mohr, Francis Norton, Ian Stokes-Rees, Kevin Williams, Kurt Cagle, Nikola Ozu and Jeni Tennison published by Wrox Press Limited in July 2001; ISBN 1861005474; copyright © Wrox Press Limited 2001; all rights reserved.No part of this chapter may be reproduced, stored in a retrieval system or transmitted in any form or by any means -- electronic, electrostatic, mechanical, photocopying, recording or otherwise -- without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews.
Created: October 18, 2001
Revised: October 30, 2001
URL: http://webreference.com/authoring/languages/xml/schemas/chap1/