eComputerBay

Computer Bay
Login | Register Build Your PC
Build UR PC  
New Used Refurbished
 USD ($)    Skype Connection    Skype Connection
Buy, Sell & Promote Computers World Over

Product Search Bar

  Computer Dictionary : DTD (Document Type Definition)
 

Welcome to the eComputer Bay's Computer Dictionary - the free online dictionary of computer and technology terms. The goal of the Computer Dictionary is to not just define computer terms, but explain them as well.

Definitions of computer terms are helpful, but explanations with examples are even better. eComputer Bay contains hundreds of computer and technology terms, all with detailed explanations.

Use the Search Bar Below To Get Computer Definations And To Check out All the Terms Simply leave the Computer Term Blank...-



Computer Term

1. DTD (Document Type Definition)

Stands for "Document Type Definition." A DTD defines the tags and attributes used in an XML or HTML document. Any elements defined in a DTD can be used in these documents, along with the predefined tags and attributes that are part of each markup language. The following is an example of a DTD used for defining an automobile:

<!DOCTYPE automobile [
   <!ENTITY header "Car Details">
   <!ELEMENT make (#PCDATA)>
   <!ELEMENT model (#PCDATA)>
   <!ATTLIST model doors (two | four) #required>
   <!ELEMENT year (#PCDATA)>
   <!ELEMENT engine (#PCDATA)>
   <!ATTLIST engine transmission (manual | automatic) #required>
]>

The above DTD first defines the header of the item as "Car Details." Then it provides elements to define the make and model of the automobile. The "#PCDATA" data type means it can be any text value). The "ATTLIST" tag on the next line provides options for a specific element. In this case, it states that the model can have either two or four doors. The DTD then provides elements for the year and engine type of the car, followed by a choice of either a manual or automatic transmission for the engine.

The above example is a basic DTD that only uses a few data types. Document type definitions used for large XML databases can be thousands of lines long and can include many other data types. Fortunately, DTDs can be easily modified in a text editor whenever changes need to be made.



 
 



Free Online Computer Dictionary

Copyright © eComputerBay.com All rights reserved. Reproduction in whole
or in part in any form or medium without written permission is prohibited.
Usage of this web site is subject to terms and conditions.
eComputerBay on
© eComputerBay - (2007-2018)