I am just trying to learn a bit of XML and I came across this:
europe.dtd
XMLpg45.xml
I am not using a XML editor - only notepad & for some unknown reason when I load it on the browser to check it I get the message:
what am I doing wrong?
europe.dtd
Code:
<!ENTITY at "Austria">
<!ENTITY be "Belgium">
<!ENTITY dk "Denmark">
<!ENTITY fi "Finland">
<!ENTITY fr "France">
<!ENTITY de "Germany">
<!-- and so on... -->
XMLpg45.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE address [
<!ELEMENT address (city)*>
<!ELEMENT city (#PCDATA)>
<!ATTLIST city country CDATA #IMPLIED>
<!ENTITY % europe SYSTEM "europe.dtd">
%europe;
]>
<address>
<city country="&fr;">Paris</city>
</address>
I am not using a XML editor - only notepad & for some unknown reason when I load it on the browser to check it I get the message:
XML Parsing Error: undefined entity
Location: file:///C:/Documents%20and%20Settings/Ryan%20Bibby/Desktop/Website!!!!!!/Examples/XMLpg45.xml
Line Number 18, Column 2:
<city country="&fr;">Paris</city>
--------^
what am I doing wrong?