|
|
DTD-Entities

Entities are variables used to define
shortcuts to standard text or special characters. Entity references are references to
entities Entities can be declared internally or
externally.
Internal Entity Declaration
Syntax
<!ENTITY entity-name "entity-value">
|
DTD Example:
<!ENTITY name "Amit">
<!ENTITY company "RoseIndia"> |
XML example:
<Profile>&name;&company;</Profile>
|
Note: An entity has three parts: an ampersand
(&), an entity name, and a semicolon (;).
An External Entity Declaration
Syntax
<!ENTITY entity-name SYSTEM "URI/URL">
|
DTD Example:
<!ENTITY name SYSTEM
"http://www.roseindia.net/entities.dtd">
<!ENTITY company SYSTEM "http://www.roseindia.net/entities.dtd"> |
XML example:
<Profile>&name;&company;</Profile>
|

|
|
Facing Programming Problem?
|
| Add This
Tutorial To: |
Del.icio.us |
Digg |
Google |
Spurl |
Blink |
Furl |
Simpy |
Y! MyWeb |
|
|
Current Comments
0 comments so far (post your own) View All Comments Latest 10 Comments: