24.3. An Example of a Complex Type Mapping Supporting Mixed Content to a Database Schema

Mixed content allows free-form text interspersed with elements. Listing 24.4 demonstrates an XML representation of assemblyCatalogEntryDescriptionType that permits valid lists of part numbers to be interspersed with text. This listing is similar to Listing 11.4 and differs only in the type that forms the element type and the addition of an attribute for the manufacturer.

Listing 24.4. An XML Document Fragment of a Complex Type That Supports Mixed Content
 <xsd:complexType name="assemblyCatalogEntryDescriptionType" mixed="true" id="assemblyCatalogEntryDescriptionType.[ccc] catalog.cType"> <xsd:annotation> <xsd:documentation xml:lang="en"> Allow the description ...

Get XML Schema Complete Reference, The 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.