Click to See Complete Forum and Search --> : DTD and XML


v[E]r5e
01-26-2005, 05:17 AM
what is the difference between DTD and XML? are they related? can they be incorporated to make something even powerful?
or are they just each of their own?

I see that DTD has quite different syntax from XML and it has to declare its elements and state its data. I am quite confused with DTD and what it does.

Can somebody explain the difference between DTD and XML please?

thanks :)

crh3675
01-26-2005, 12:45 PM
DTD defines the XML data. It is not necessary but recommened for heavier XML usage. Actually instead of using a DTD, use XSD as it is more favorable

http://www.w3schools.com/schema/default.asp