Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Entity Declarations

Entities are simply a method of shorthand for including information in an XML document which is either repeated often or specialized characters.

For example, let's say that we were working on a set of legal documents, and we wanted to include a disclaimer in those documents, and we wanted to repeat it many times (at the top and bottom of each page, for example). We could insert the entire disclaimer word-for-word multiple times in the document, or we could use an entity.

When entities appear in an XML instance document, they look like this:

<element>&entity;</element> 

The ampersand & denotes that the text is an entity, and the semicolon ; denotes the end of the entity. The entity represents the name of the entity, as defined ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book