Predefined Entities

As is the case in HTML, there are some characters that have special interpretations in XML. For example, the greater-than (>) and less-than (<) characters are used to delimit tags and therefore cannot be placed inside a data string directly. To insert them into a string, you need to use a special sequence of characters, or an entity reference, that's reserved for that purpose. An entity is a sequence of characters used to represent another sequence of characters, and those that the system provides are known as predefined entities. The notation of an entity reference is identical to that used in HTML. Table 5.1 contains the characters with their corresponding entity references.

Table 5.1. System-Provided Predefined Entities ...

Get Sams Teach Yourself XML in 24 Hours 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.