Chapter 12. Anatomy of an XML Document

by Simon North and Jim O'Donnell

In this chapter

XML Markup

A Sample XML Document

Logical Structure

Physical Structure

Markup Delimiters

Element Markup

Attribute Markup

Naming Rules

Comments

Character References

Just as student doctors begin their medical training by dissecting a human body and learning the nature and relation of the parts before they learn how to treat them, so this exploration of XML can begin with an examination of a small XML document with all its parts identified. In this chapter, we will look more closely at a sample XML document and break it down into its component parts. We will cover the following topics: