O'Reilly logo

XML Pocket Consultant by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Defining Simple Types in Schema

The most basic elements in a document are those that contain only data. In schema, you define these basic elements using simple types. You also define element attributes as simple types. Simple types are said to be either primitive or derived. Primitive data types are those that are built-in and are defined in the XML Schema specification. Derived data types are those that are derived from other data types.

The XML Schema language includes many built-in datatypes. These datatypes are similar to those used in many programming languages. Using the built-in datatypes, you can specify that an element can contain Booleans, Strings, Uniform Resource Indicators (URIs), date/time values, and many types of numbers. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required