File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml and dtd

 
siva kumar r
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ajith Kallambella
Sheriff
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic