10.7. The list Element

A simple type can specify a space-delimited list consisting of values specified by other global or local simple types. An instance of a list declared in the context of a simple type has all the values contained within a single element:

<listElement>value1 value2 value3</listElement> 

Tip

The list element does not support the notion of a list comprised of repeating elements:

<element>value1</element> 
<element>value2</element> 
<element>value3</element> 

Both the element element (covered in Chapter 8) and the complexType element (covered in Chapter 11) support repeating elements.

Listing 10.5 shows the XML representation of partNumberListType, which contains a list of partNumberType. Listing 10.2 portrays the partNumberType ...

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.