| Workshops --> XML --> Demo --> schema16.html |
|---|
![]() |
|
Declaring complex type elements with mixed content
The generic form is:
The attribute mixed="true" indicates that this complex type can have different types of content
This is a valid element:
Here is how the element appears in the XML file
This can also be done as a custom complex type
The generic form is:
This is a valid element:
This is how the element is called in the schema
This is how the element appears in the XML file
Here's a complex type defined earlier:
This is how the element is called in the schema
In the XML file, this element would look like this
The generic form that makes use of this complex type to define a new one is:
The elements enclosed in the extension tag are the new elements being added to the previously defined complex type
This is a valid element:
This is how the element is called in the schema
This is how the element appears in the XML file
|
||||||||||||||||||||||||
| Page by Howard Rosenbaum | |
| Find me at hrosenba@indiana.edu | You are here: http://www.slis.indiana.edu/hrosenba/www/Workshops/XML/Demo/schema16.html |