Lesson 8
XML Schemas Conclusion
In this module, you learned how to create element, attribute-list, entity declarations, namespaces, and XML schemas. With this understanding of DTD syntax, you are able to write an XML document that conforms to a specified DTD.
Learning objectives
Having completed this module, you should now be able to:
- Determine the best way to use attributes in a DTD
- Declare lists of attributes
- Define entities in a DTD
- Create entities to use within a DTD
- Explain the concept of namespaces
- Explain the purpose of XML schemas
Glossary terms
This module introduced the following terms:
- Attribute-list declaration: In a DTD, attributes are declared with an ATTLIST declaration.
The ATTLIST statement is used to list and declare each attribute that can belong to an element. It first specifies the name of the element for which the attribute list will apply.
- Child element
- Complex types:The complexType element defines a complex type. A complex type element is an XML element that contains other elements and/or attributes.
- Element:XML elements can be defined as building blocks of an XML. Elements can behave as containers to hold text, elements, attributes, media objects or all of these.
- General entities:General entities must be declared within the DTD before they can be used within an XML document. Instead of representing only a single character, general entities can represent characters, paragraphs, and even entire documents.
- Namespace
- Name collisions
- Parameter entities
- Parent element
- Schema:
- Scope
- Simple types:The simpleType element defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.
In the next module, you will learn about XML parsers.
Element Attribute - Quiz
Click the Quiz link below to test your understanding of element attributes, entities, and schemas.
Element Attribute - Quiz