General entities are placeholders for any information contained within the root element of an XML document. They can be of the following three types.
These entities are used in place of special characters.
Check here for more examples.
These entities are used to mark a common block of content that presents often in the document. Content entities can be internal (that are defined inside the XML file) or external (that reside in separate file(s)).
| <!ENTITY school "UW-Superior"> |
| <!ENTITY description SYSTEM "description.xml"> |
| <school_description>Wisconsin's Public Liberal Arts College </school_description> |
Some data like images of video files should not be parsed at all. The unparsed entity tells the system to parse the data as is.
| <!ENTITY uws_image SYSTEM "uws.jpg" NDATA JPEG> |