This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes create DTD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "create DTD" Watch "create DTD" New topic

create DTD

sihani rani
Ranch Hand

Joined: Jun 22, 2010
Posts: 32
Hi all,

I am new to XML.How can i create new DTD file in XML?

Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

The purpose of a DTD is to define the structure of an XML document.

First of all you will have to set some rules for the DTD, and then include that in your XML.

check out

Regards, Atul.
I came to this world on a Learner's License
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
A Document Type Definition (DTD) is the definition of a specific type of electronic document. Specifically, it defines (1) a vocabulary of element names and attribute names, (2) guidelines concerning permitted relationships between elements, (3) specifications for required and optional items, and (4) a compliant XML-based structure in accord with the rules specified in SGML (ISO 8859:1986) and/or XML specifications. XML is a simplified version of SGML.

You can create a DTD in a simple text editor such as UltraEdit once you understand the rules.
It is sorta covered in the JavaRanch Style Guide.
subject: create DTD