O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

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

<complexType>

Because XML Schemas have a <simpleType>, it follows that they also have a <complexType>. A complex type is used for developing element content, which is either element content or which has mixed content of both elements and data.

The representation of <complexType> is similar to the other components we have seen. It has a number of attributes that contribute to the ability to customize the <complexType> element:

  • id— A unique id for the complex type.

  • mixed— A Boolean accepting “true” or “false” with a default value of false. A value of true is used to represent a complexType that has mixed content—that is, both data and child elements.

  • name— A name for the complex type, which can be referenced by element declarations, extensions, restrictions, ...

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