
XML Syntaxes • 87
Figure 2.48 shows an example.
<!ENTITY city SYSTEM “delhi.html” NDATA html>
Figure 2.48 Binary entity example
The explanation of this binary entity declaration is as follows:
Keyword SYSTEM indicates the type of the DTD. We have not discussed this yet, and it is not relevant to
our current discussion. Therefore, we will ignore it. We will revisit it when we discuss DTDs. The remaining
portion of the entity declaration states that CITY is an entity declaration. It is binary because of the usage
of the keyword NDATA, which indicates that this is “not XML data”. The actual contents of this entity are
defined in a separate file, called ...