| Workshops --> XML --> Demo --> schema.html |
|---|
![]() |
|
They provide a means for defining the structure, content and semantics of XML documents"
Elements that contain other elements and/or attributes and text are described in schema with complex types
Determine the type of data that an element can contain
In comparison, DTDs use a very different and more inflexible syntax than is used in an XML schema
Determine the order of the elements in the XML file
This provides much greater flexibility than is possible in a DTD
Global means that the element has a unique name, is defined once, and must be used the same way everywhere in the schema and XML document
Local means that the meaning of the element depends on its context
|
||||||||||||||||||||||||
| Page by Howard Rosenbaum | |
| Find me at hrosenba@indiana.edu | You are here: http://www.slis.indiana.edu/hrosenba/www/Workshops/XML/Demo/schema.html |