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

Content Models

Although there are some times when an empty element is useful in a document, most elements are not empty. Elements can have content that is of a simple, straightforward type, such as a string or a number, or they can have a mixture of text and other elements.

When an element contains only a value, and no other elements, we say that it has simple content. If an element is a parent element that contains only other elements as children then the element has element content. And, finally, when an element contains a mixture of data and other elements, we say it has mixed content.

There are some confusing terminologies used with XML Schemas. For example, we have simpleContent and simpleType. We also have complexContent and complexType ...

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