I am just started learning DTD when i came to know that the browser is not validating my xml against my internal DTD. Can someone explain me regarding this. The browser (IE7) does ot complain if my xml is viaolating the rules defines in the xml. Kindly see the following code that i used my broswer to validate.
The above xml does not have the from and to element in order neither they have the phoneNumber defined in the DTD. But still the browser is not validating. Kindly provide some light on this.
Thanks and Regards,
Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Browsers check only for well-formedness. They don't validate against Schema/DTD's. If you remove text/elements from you XML files, as long as they continue well-formed, the browsers will still be able to display them.