O'Reilly logo

XML and Perl by Ilya Sterin, Mark Riehl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Components of an XML Document

So far, I have provided some background material and discussed some of the characteristics of XML, but you still don’t really know what makes up an XML document. In this section, I’ll discuss the components required to build an XML document and then present an XML document that illustrates these various components.

Types of Markup

An XML document is a text file that consists of character data and markup. In the case of XML, there are several different constructs that are considered to be markup. A summary of these different constructs is shown in Table A.1.

Table A.1. Summary of XML markup.
Markup Description
Start tag Used to mark the beginning of a non-empty XML element (for example, <address>). Note that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required