Why is the XML DTD not found by the browser
Posted
by
hyperuser
on Super User
See other posts from Super User
or by hyperuser
Published on 2012-11-10T01:23:27Z
Indexed on
2012/11/10
5:04 UTC
Read the original article
Hit count: 572
When I load my XML file in a browser, it complains there is 'no style information': "This XML file does not appear to have any style information associated with it. The document tree is shown below."
So I wrote an external DTD, then an internal DTD, but keep getting the same 'no style information' error. It doesn't even show the DTD! What am I doing wrong?
<?xml version="1.0"?>
<!DOCTYPE fotos [
<!ELEMENT fotos (titel,auteur)>
<!ELEMENT titel (#PCDATA)>
<!ELEMENT auteur (#PCDATA)>
]>
<fotos>
<titel>titel1</titel>
<auteur>jan</auteur>
</fotos>
© Super User or respective owner