| Introduction |

This package contains an implementation of the W3C XML Schema Language, a recommendation of the Worldwide Web Consortium available in three parts: XML Schema: Primer and XML Schema: Structures and XML Schema: Datatypes. We consider this implementation to be complete except for the limitations cited below. The implementation has been extensively tested and known problem areas are set out below. In this document we also discuss our interpretation of the specifications where it seems to us particularly likely that others might arrive at a different interpretation. Please read this document before using this package.

| XML Schema Programmer's Guide |

This section provides the following topics:

- Limitations and known bugs
- How do I? -- the most frequently asked questions about XML Schema that include some sample code.

| Limitations |

- Length, minLength, and maxLength facets are limited to the value 2147483647. Items larger than this limit will not be validated correctly.
- The values of minOccurs and maxOccurs attributes are limited to the value 2147483647. Items larger than this limit will not be validated correctly.
- The values of minimum and maximum quantifiers in the pattern regular expressions are limited to the value 2147483647. Items larger than this limit will not be validated correctly.
- The absolute values of the fraction portion of the second values in date/time datatypes are limited to the value 2147483647. Items larger than this limit will not be validated correctly. i.e. 11.2147483648 is not supported as a second value.

| Problem Areas/Known Bugs |

- For larger values of maxOccurs, an OutOfMemoryError may occur. The workaround for this problem, if your application permits it, is to change the maxOccurs value to unbounded.

| Other Notes |

- As of version 2.2.1, it is hoped that Xerces-J will always be able to parse the Schema for Schemas current at the time of the product's release. As of version 2.2.1, this implies inserting special logic to permit the presence of the built-in Schema datatypes in this particular schema; an issue has been raised with the Schema Working Group, in hopes the document will be modified so that the built-in types are no longer presented as global components. Thus, anyone planning to rely on the Schema for Schemas should be aware that the possibility exists that a change of this sort might be made in the future.
- In the original XML Schema recommendation, the lexical space of the simple type `gMonth` is `--MM--`. An erratum E2-12 changed that to `--MM`. For compatibility reasons, Xerces currently supports both forms. To align with the recommendation, we have decided to deprecate the old form, and plan to discontinue support for that form in a future release.

Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.