DTD represents the structure of an XML document. Things such as what are the elements, how the elements are nested, how child elements are ordered, what is the cardinality and grouping etc are contained in the DTD which helps serve as the document constraint. An important point to note is that DTD is not the data, but just the representation of data structure. If you are from OO background, DTD is an anology to class definition while XML is the instance of the class ie., an object. So, an XML document is what you would like to display in a browser. Without such document, DTD by itself has no meaning. ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).