May 28, 2021 XML Schema
An element of a compound type that contains only elements is an element that can contain only other elements.
XML elements, "person", contain only other elements:
You can define the "person" element in schema like this:
Keep an eye out for this . I t means that the defined element must appear in the "person" element in the order above.
Alternatively, you can set a name for the complexType element and have the type property of the "person" element refer to the name (for example, with this method, several elements can refer to the same composite type):
In the next section, you'll learn about XML Schema composite types that contain only text.