DTD - Notations – Representing Non-XML Data
Introduction
Notations define the format of external data referenced by XML. They tell applications how to interpret non-XML content, such as images, multimedia, or proprietary formats.
Syntax
Example
Suppose you want to reference a PNG image in XML:
XML Usage:
Notes
-
Notations do not validate the content; they only declare its type.
-
Often used with external entities to indicate the format.
Summary
-
Entities – Reusable text or DTD fragments (general vs parameter).
-
Attributes (ATTLIST) – Metadata for elements with types, defaults, and enumerations.
-
Notations – Describe non-XML data referenced in documents.
These concepts complement element definitions, sequences, and mixed content, rounding out a deeper understanding of DTD structure and capabilities.