XML for Data Architects: Designing for Reuse and Integration

Appendix B: W3C XML Schema Syntax Examples

W3C XML Schema "element" Syntax (Locally Declared)

(Example of an W3C XML Schema "fragment")

   

The element is defined at the point at which it is initially declared. Locally declared elements are usually not available for reuse outside the scope of their originating declaration.

W3C XML Schema "complexType" Syntax (Locally Declared)

(Example of an W3C XML Schema "fragment")

      

The complexType is defined at the point at which it is initially declared. A sequence compositor has been applied to the example syntax fragment. Locally declared complexTypes are usually not available for reuse outside the scope of their originating declaration.

W3C XML Schema "element" Syntax (Globally Declared)

(Example of an W3C XML Schema "fragment")

   

The named element declaration is defined to the entire schema (hence the term "global"). As defined, this globally declared element can be reused by reference from elsewhere within the W3C XML Schema (in this case referenced from within the bounds of a complexType).

W3C XML Schema "group" Syntax (Globally Declared)

(Example of an W3C XML Schema "fragment")

    

The named group declaration contains two child elements with an applied sequence compositor. The group is defined to the entire schema (hence the term "global"). As defined, this globally declared group can be reused by reference from elsewhere within the W3C XML Schema.

W3C XML Schema "simpleType" Syntax (Globally Declared Data Type)

(Example of an W3C XML Schema "fragment")

    

The named simpleType declaration represents a custom data type. It is based upon the W3C XML Schema "string" type and includes constraining facets...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Electronic Data Interchange Software (EDI)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.