Summary of XML Document Markups

XML documents are composed of markup and content. Six kinds of markup can occur in an XML document: elements, attributes, comments, marked sections, entity references, and document type declarations. The following sections introduce each of these markup concepts. All the markups are case-sensitive; that means, for example, the tag <FirstName> is different from <firstname>.

Building Elements

Elements are the building blocks of an XML document. The content of an element is surrounded by a start tag and an end tag. Some elements may be empty; in which case, they have no content. If an element is not empty, it begins with the start tag, <element>, and ends with the end tag, </element>. An empty element, however, is ...

Get Sams Teach Yourself EJB in 21 Days 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.