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 ...
Get Special Edition Using XML, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.