shubhadeep
12-26-2005, 05:14 PM
Hi
I am a complete newbie to XML. I just finished the DTD part. At first, I thought that going against a specified DTD in an XML document would give an error (like providing an element in an XML document which is not in the DTD or providing a value for an attribute in the XML markup other than the possible values specified in the DTD). But then some1 told me that it wont. And now I'm all confused. Why are DTDs there if someone can just give well-formed markup and go against the DTDs and get his XML markup to work just fine.
I am a complete newbie to XML. I just finished the DTD part. At first, I thought that going against a specified DTD in an XML document would give an error (like providing an element in an XML document which is not in the DTD or providing a value for an attribute in the XML markup other than the possible values specified in the DTD). But then some1 told me that it wont. And now I'm all confused. Why are DTDs there if someone can just give well-formed markup and go against the DTDs and get his XML markup to work just fine.