Storing the Data in XML

XML documents contain data that is stored in elements or attributes (which we will discuss later). This data is in the form of characters, and any valid Unicode character is also a valid character in XML. For example, all 26 letters of the English alphabet are characters, as are all the digits 0-9. All 33 characters of the Cyrillic alphabet are also valid characters.

The text in an XML document can be divided into two groups: character data and markup. Markup consists of the tags and syntax of XML components, whereas character data makes up the information stored in the document. In the example

<book> 
<title ISBN="0000-0000-0000">Using XML</title>
</book>

the element tags and the attribute name are all considered markup, ...

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.