Basic HTML version of Foils prepared May 19 99

Foil 35 Entities

From An Introduction to XML Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Nancy McCracken,Ozgur Balsoy, Tom Scavo


The DTD of an XML document can contain entity declarations. These are like constants in other languages.
  • An entity declaration specifies replacement text for the entity including some macro-preprocessing capability. <!ENTITY % pub "Éditions Gallimard"> <!ENTITY rights "All rights reserved"> <!ENTITY book "La Pest: Albert Camus, &#sA9; 1947 %pub; . &rights;">
  • This entity would have replacement text for book: La Peste: Albert Camus, c 1947 Editions Gallimard. &rights; where c would be copyright symbol, and E has accent mark.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed May 19 1999