Thanks for reading my question. I have searched for and read similar questions, but none of them quite explained what was going on.
I have an XML file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="../wikiStyle.css"?>
<!DOCTYPE article SYSTEM "../article.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<header>
<title>Foreign relations of Malta</title>
<id>19146</id>
</header>
<bdy>
<link xlink:type="simple" xlink:href="../205/40205.xml">Albania</link> ·
<link xlink:type="simple" xlink:href="../588/67588.xml">Andorra</link> ·
</bdy>
</article>
As you can see; I've referenced the .dtd file, and it contains definitions like:
<!ENTITY nbsp " "> <!-- no-break space = non-breaking space,
U+00A0 ISOnum -->
My aim is to display this .xml file in a browser, readably. The CSS manages this perfectly, except for .xml files, like this one, that contain elements like nbsp;
in that case, I get an error like:
XML Parsing Error: undefined entity
10.1126/science.288.5472.1775</weblink>. PMID 10877698.</cite> </entry>
--------------------------------------------------------------^
As I understood it, this line in the .dtd should declare this element to the browser, and enable me to use   in my xml (and have it expanded to   by the browser's parser for display.
- Am I correct in my understand of what should be happening, or am I missing something?
- How can I declare this element so that it can be displayed by the browser?
Please note: I'm working with millions of these XML files, and I don't generate them. I need a solution that does not involve changing the .xml file itself.