General Entity Example in a DTD

Suppose you define the shopname general entity as an internal entity with the value Most Excellent Book Store of Tokyo. In the Text view of the DTD, this appears as follows:

<!ENTITY shopname "Most Excellent Book Store of Tokyo">
               

            

In an instance document, when the XML parser finds &shopname;, it replaces it with Most Excellent Book Store of Tokyo.

 
Free Stylus Studio XML Training:
W3C Member