Chapter 3. XML Building Blocks: Elements and Attributes

by David Gulbransen

In this chapter

XML Elements

Generic Identifiers

Some Rules for Naming Elements

Storing the Data in XML

Parsed Character Data

Bypassing Parsing with CDATA

Attributes

When to Use Attributes

Classifying Attributes: Attribute Types

Attribute Rules

Well-Formedness Rules

Creating a Well-Formed XML Document

The Basics of Validation

How Do Applications Use XML?

An Overview of XML Tools

Roadmap

Additional Resources

Get Special Edition Using XML, Second 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.