Attributes Entitites   «Prev  Next»

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:
  1. Determine the best way to use attributes in a DTD
  2. Declare lists of attributes
  3. Define entities in a DTD
  4. Create entities to use within a DTD
  5. Explain the concept of namespaces
  6. Explain the purpose of XML schemas

Glossary terms

This module introduced the following terms:
  1. 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.
  2. Child element
  3. Complex types:The complexType element defines a complex type. A complex type element is an XML element that contains other elements and/or attributes.
  4. 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.
  5. 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.
  6. Namespace
  7. Name collisions
  8. Parameter entities
  9. Parent element
  10. Schema:
  11. Scope
  12. 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