Hello friends,
I am trying to
reference entity from an
external dtd.
But the
XML code is not being parsed due to
error.
"I am really stuck and I don't know what to do."
XML file (note.xml):
Code:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE message SYSTEM "note.dtd">
<message>
<to>Love</to>
<from>&author; Lover</from>
<body>I love you very much! <3</body>
</message>
DTD file (note.dtd):
Code:
<!ELEMENT message (to, from, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<!ENTITY author "Anonymous">
Thank you!