Can i display the data of an xml file in the browser with the help of a dtd file alone.If it is possible give me a small example. what is the exact role played by a dtd. sivakumar.a
posted 15 years ago
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).