Firefox doesn't read DTDs?

I have an XML file (diploma.xml) that looks like this:

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE Diploma SYSTEM "diploma.dtd">
<Diploma>
    &students;
    &Registrations;
    &Courses;
</Diploma>

      

And the DTD looks like this:

<!ENTITY students SYSTEM "students.xml">
<!ENTITY Registrations SYSTEM "registrations.xml">
<!ENTITY Courses SYSTEM "courses.xml">

      

When I try to open diploma.xml

in IE8 it includes all other XML files correctly, but in Firefox 3.5 I get a syntax error about &students;

not defined. Why is this?

+2


source to share


1 answer


Firefox doesn't read external objects at all (except for a few internal special cases). This is partly because it could flood sites like W3 with DTD requests, partly because it is another source of potential cross-site scripting, but mostly out of laziness as few people use Firefox as a raw XML viewers and some of them people use old school DTDs more.



+4


source







All Articles