DTD - Entity Declaration
Location of data
- internal entities
<!ENTITY entityname “replacement text”>
- external entities: parsed and uparsed
<!ENTITY entityname SYSTEM “URI”>
Parsed entities - external files that contain XML, can be inserted in the document
Unparsed entities - mostly binary files, can be used only as attribute values on elements with ENTITY attributes
<!ENTITY picture SYSTEM “mypicture.gif” NDATA gif>