DTD Notes Page 1

  1. XML Document Type Definition
    It Defines the document structure with a list of legal elements
    It Can Be Declared Inside the XML File or in an External Reference File
    Each of the XML files can carry a separate description of it's own format
    Business groups can agree to use a common DTD for interchanging Data
    Applications can use a standard DTD to verify the data
  2. DTD - XML Building Blocks
    All XML and HTML documents are made of the following
    1. Elements eg; <body>, <table>... etc.
    2. The Main Building Blocks
    3. Tags
    4. Mark the Beginning and End of Elements
    5. Attributes
    6. Only in the Start Tags of Elements; Extra information
    7. Entities
    8. Variables used to Define Common Text eg; &nbsp, &lt
    9. PCDATA
    10. Parsed Character Data - Text that will be parsed by a parser!
      Tags inside the text will be treated as MarkUp and Entities will be Expanded
    11. CDATA
    12. Character Data - Text that will not be parsed!
  3. Elements
    XML Elements are Declared with a DTD Element Declaration
  4. DTD - Attributes
  5. DTD Entities
    Entities are variables used to define shortcuts to common text
    - Entity references are references to entities
    - Entities can be declared internally or externally
  6. DTD Validation
  7. Examples
Hosted by www.Geocities.ws

1