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 11. Defining Complex Types in Schema

In this chapter you’ll learn how to define complex types in schema. If an element contains other elements or uses attributes, you’ll need to define the element as the complex type in schema. Complex types follow the same basic constructs as simple types. They’re defined using XML markup and have predefined sets of tags that can appear within their opening and closing tags.

You always define attributes and lower-level elements within a complex type. You can also reference globally declared elements within complex types. This is, in fact, the only way to use globally declared elements (excluding a document’s root element). XML Schema also allows you to group elements and attributes and then reference those ...

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