posted 22 years ago
The external file that you are referring has a <to> element.Hence it will not flag an error,when you add a <to> element
But I tried to add one more element, <subHeading> to the XML file.
However in IE6 the file still gets validated,but when checked with XML Spy,it pops an error,which means that it is referring to the correct external DTD, and any variation in the XML file,prevents it from getting validated.
So the problem is with IE and not the DTD.
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "http://www.w3schools.com/dtd/note.dtd">
<note>
<to>Angel</to>
<from>Helpless</from>
<hello></hello>
<subHeading>New</subHeading>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Hope this helps.
Vasudha
IBM Certified Developer -XML and Related Technologies(141)<br />SCJP2 SCWCD