<?xml version="1.0" standalone=”yes”?>
<!DOCTYPE root[
<!ELEMENT root (line,lang)>
<!ELEMENT line ANY>
<!ENTITY film "Harry Potter series">
]>
<root>
<!—Entity reference -->
<line>Favourite cinema is &film;</line>
</root>
Output for the example above will be:
<root>
<line>Favourite cinema is Harry Potter series</line>
</root>
Comments
No comments have been made yet.
Please login to leave a comment. Login now