• 0

XML, DTD


Question

2 answers to this question

Recommended Posts

  • 0
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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.