Syntax overview

These initial chapters have introduced XML elements and attributes, and a few other constructs, but there is still much more to this standard. The following illustration includes examples of almost all the important features of the XML format. Many of the mechanisms shown are optional, including some that are rarely used (many of these are in the process of being replaced by new, separate standards that are discussed later). Each major feature of XML is labelled in the diagram below to facilitate quick look-up of any unknown concepts:

Key:

  • (A) the XML Declaration – XML declaration

  • (B) the document type declaration – Document type ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.