XML Schema: The W3C's Object-Oriented Descriptions for XML

If you need to create or use formal descriptions of XML vocabularies, the W3C's XML Schema offers a powerful set of tools for defining acceptable document structures and content. An alternative to DTDs as the way to describe and validate data in an XML environment, XML Schema enables developers to create precise descriptions with a richer set of datatypes?such as booleans, numbers, currencies, dates and times?that are essential for today's applications.Schemas are powerful, but that power comes with substantial complexity. This concise book explains the ins and outs of XML Schema, including design choices, best practices, and limitations. Particularly valuable are discussions of how the type structures fit with existing database and object-oriented program contexts. With XML Schema, you can define acceptable content models and annotate those models with additional type information, making them more readily bound to programs and objects. Schemas combine the easy interchange of text-based XML with the more stringent requirements of data exchange, and make it easier to validate documents based on namespaces.You'll find plenty of examples in this book that demonstrate the details necessary for precise vocabulary definitions. Topics include:

  • Foundations of XML Schema syntax
  • Flat, "russian-doll", and other schema approaches
  • Working with simple and complex types in a variety of contexts
  • The built-in datatypes provided by XML Schema
  • Using facets to extend datatypes, including regular expression-based patterns
  • Using keys and uniqueness rules to limit how and where information may appear
  • Creating extensible schemas and managing extensibility
  • Documenting schemas and extending XML Schema capabilities through annotations
In addition to the explanatory content, XML Schemaprovides a complete reference to all parts of both the XML Schema Structures and XML Schema Datatypes specifications, as well as a glossary. Appendices explore the relationships between XML Schema and other tools for describing document structures, including DTDs, RELAX NG, and Schematron, as well as work in progress at the W3C to more tightly integrate XML Schema with existing specifications.No matter how you intend to use XML Schema - for data structures or document structures, for standalone documents or part of SOAP transactions, for documentation, validation, or data binding ? all the foundations you need are outlined in XML Schema.
1005360731
XML Schema: The W3C's Object-Oriented Descriptions for XML

If you need to create or use formal descriptions of XML vocabularies, the W3C's XML Schema offers a powerful set of tools for defining acceptable document structures and content. An alternative to DTDs as the way to describe and validate data in an XML environment, XML Schema enables developers to create precise descriptions with a richer set of datatypes?such as booleans, numbers, currencies, dates and times?that are essential for today's applications.Schemas are powerful, but that power comes with substantial complexity. This concise book explains the ins and outs of XML Schema, including design choices, best practices, and limitations. Particularly valuable are discussions of how the type structures fit with existing database and object-oriented program contexts. With XML Schema, you can define acceptable content models and annotate those models with additional type information, making them more readily bound to programs and objects. Schemas combine the easy interchange of text-based XML with the more stringent requirements of data exchange, and make it easier to validate documents based on namespaces.You'll find plenty of examples in this book that demonstrate the details necessary for precise vocabulary definitions. Topics include:

  • Foundations of XML Schema syntax
  • Flat, "russian-doll", and other schema approaches
  • Working with simple and complex types in a variety of contexts
  • The built-in datatypes provided by XML Schema
  • Using facets to extend datatypes, including regular expression-based patterns
  • Using keys and uniqueness rules to limit how and where information may appear
  • Creating extensible schemas and managing extensibility
  • Documenting schemas and extending XML Schema capabilities through annotations
In addition to the explanatory content, XML Schemaprovides a complete reference to all parts of both the XML Schema Structures and XML Schema Datatypes specifications, as well as a glossary. Appendices explore the relationships between XML Schema and other tools for describing document structures, including DTDs, RELAX NG, and Schematron, as well as work in progress at the W3C to more tightly integrate XML Schema with existing specifications.No matter how you intend to use XML Schema - for data structures or document structures, for standalone documents or part of SOAP transactions, for documentation, validation, or data binding ? all the foundations you need are outlined in XML Schema.
23.99 In Stock
XML Schema: The W3C's Object-Oriented Descriptions for XML

XML Schema: The W3C's Object-Oriented Descriptions for XML

by Eric van der Vlist
XML Schema: The W3C's Object-Oriented Descriptions for XML

XML Schema: The W3C's Object-Oriented Descriptions for XML

by Eric van der Vlist

eBook

$23.99  $31.99 Save 25% Current price is $23.99, Original price is $31.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

If you need to create or use formal descriptions of XML vocabularies, the W3C's XML Schema offers a powerful set of tools for defining acceptable document structures and content. An alternative to DTDs as the way to describe and validate data in an XML environment, XML Schema enables developers to create precise descriptions with a richer set of datatypes?such as booleans, numbers, currencies, dates and times?that are essential for today's applications.Schemas are powerful, but that power comes with substantial complexity. This concise book explains the ins and outs of XML Schema, including design choices, best practices, and limitations. Particularly valuable are discussions of how the type structures fit with existing database and object-oriented program contexts. With XML Schema, you can define acceptable content models and annotate those models with additional type information, making them more readily bound to programs and objects. Schemas combine the easy interchange of text-based XML with the more stringent requirements of data exchange, and make it easier to validate documents based on namespaces.You'll find plenty of examples in this book that demonstrate the details necessary for precise vocabulary definitions. Topics include:

  • Foundations of XML Schema syntax
  • Flat, "russian-doll", and other schema approaches
  • Working with simple and complex types in a variety of contexts
  • The built-in datatypes provided by XML Schema
  • Using facets to extend datatypes, including regular expression-based patterns
  • Using keys and uniqueness rules to limit how and where information may appear
  • Creating extensible schemas and managing extensibility
  • Documenting schemas and extending XML Schema capabilities through annotations
In addition to the explanatory content, XML Schemaprovides a complete reference to all parts of both the XML Schema Structures and XML Schema Datatypes specifications, as well as a glossary. Appendices explore the relationships between XML Schema and other tools for describing document structures, including DTDs, RELAX NG, and Schematron, as well as work in progress at the W3C to more tightly integrate XML Schema with existing specifications.No matter how you intend to use XML Schema - for data structures or document structures, for standalone documents or part of SOAP transactions, for documentation, validation, or data binding ? all the foundations you need are outlined in XML Schema.

Product Details

ISBN-13: 9781449315375
Publisher: O'Reilly Media, Incorporated
Publication date: 06/25/2002
Sold by: Barnes & Noble
Format: eBook
Pages: 400
File size: 3 MB

About the Author

Eric van der Vlist is the resident expert on XML schema languages on XML.com. He is also a member of the ISO DSDL committee, where standardization work on RELAX NG and related specifications is in progress. Eric is also the author of O'Reilly's XML Schema.

Table of Contents

Prefaceix
1.Schema Uses and Development1
What Schemas Do for XML1
W3C XML Schema4
2.Our First Schema6
The Instance Document6
Our First Schema7
First Findings13
3.Giving Some Depth to Our First Schema15
Working From the Structure of the Instance Document15
New Lessons17
4.Using Predefined Simple Datatypes21
Lexical and Value Spaces21
Whitespace Processing23
String Datatypes24
Numeric Datatypes30
Date and Time Datatypes34
List Types41
What About anySimpleType?41
Back to Our Library41
5.Creating Simple Datatypes44
Derivation By Restriction45
Derivation By List59
Derivation By Union61
Some Oddities of Simple Types63
Back to Our Library65
6.Using Regular Expressions to Specify Simple Datatypes69
The Swiss Army Knife69
The Simplest Possible Patterns70
Quantifying71
More Atoms72
Common Patterns79
Back to Our Library83
7.Creating Complex Datatypes86
Simple Versus Complex Types86
Examining the Landscape87
Simple Content Models88
Complex Content Models91
Mixed Content Models115
Empty Content Models119
Back to Our Library121
Derivation or Groups126
8.Creating Building Blocks127
Schema Inclusion127
Schema Inclusion with Redefinition129
Other Alternatives135
Simplifying the Library137
9.Defining Uniqueness, Keys, and Key References141
xs:ID and xs:IDREF141
XPath-Based Identity Checks142
ID/IDREF Versus xs:key/xs:keyref149
Using xs:key and xs:unique As Co-occurrence Constraints151
10.Controlling Namespaces153
Namespaces Present Two Challenges to Schema Languages153
Namespace Declarations156
To Qualify Or Not to Qualify?158
Disruptive Attributes164
Namespaces and XPath Expressions165
Referencing Other Namespaces166
Schemas for XML, XML Base and XLink169
Namespace Behavior of Imported Components175
Importing Schemas with No Namespaces177
Chameleon Design179
Allowing Any Elements or Attributes from a Particular Namespace181
11.Referencing Schemas and Schema Datatypes in XML Documents184
Associating Schemas with Instance Documents184
Defining Element Types189
Defining Nil (Null) Values194
Beware the Intrusive Nature of These Features...195
12.Creating More Building Blocks Using Object-Oriented Features197
Substitution Groups197
Controlling Derivations205
13.Creating Extensible Schemas213
Extensible Schemas213
The Need for Open Schemas222
14.Documenting Schemas224
Style Matters224
The W3C XML Schema Annotation Element226
Foreign Attributes231
XML 1.0 Comments232
Which One and What For?233
15.Elements Reference Guide235
16.Datatype Reference Guide305
A.XML Schema Languages337
B.Work in Progress355
Glossary361
Index369
From the B&N Reads Blog

Customer Reviews