Generic Identifiers

All specifications are concerned with semantics, and XML is no exception. In the case of elements, the semantic game is played with the terms we use to refer to elements within a document.

As we mentioned before, an element is actually the entire instance in an XML document, including the start tag, content, and end tag. However, we refer to elements by the moniker in the tag, or the element type. For example:

<name>Stella Ryan</name> 

Here, the element is the <name> tag, followed by the Stella Ryan name, and the </name> tag. This is the element instance. The element type in this case is name, which is also called the generic identifier. This is how elements are commonly referenced. For example, in talking about this element, ...

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.