JaytheletterJ Posted January 3, 2003 Share Posted January 3, 2003 What is the difference in using XML as opposed to a DTD? Examples would be helpful =) Thanks Link to comment Share on other sites More sharing options...
0 codemonkey Posted January 5, 2003 Share Posted January 5, 2003 What is the difference in using XML as opposed to a DTD? Examples would be helpful =)Thanks You can't really use one or the other. The purpose of a DTD is to define the legal building blocks of an XML document. It defines the document structure with a list of legal elements ( stolen from w3schools.com ). There are alternatives to validating stuff, you can use DTD or XML Schema. I highly recomend checking out www.w3cschools.com for info about both and some simple tutorials. Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted January 5, 2003 Veteran Share Posted January 5, 2003 Think of it this way. A DTD is a language, and XML is something written in that language. A DTD defines legal attributes of the XML. Aka, what the last guy said :D Link to comment Share on other sites More sharing options...
Question
JaytheletterJ
What is the difference in using XML as opposed to a DTD? Examples would be helpful =)
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts