Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The Basic DTD

May 3, 1999

The simplest usage of a DTD involves actually adding the DTD into the prolog portion of your XML document, just after the XML processing instruction.

The skeleton (not quite valid) of a DTD looks something like the following:

<?xml version = "1.0" encoding="UTF-8" standalone = "yes"?>
<!DOCTYPE ROOT_ELEMENT_NAME [
	ELEMENT_DEFINITIONS_GO_HERE
	]>
BODY_GOES_HERE.......

In this case we declare a document with a root element called ROOT_ELEMENT_NAME. For example, we might use the following syntax for our CONTACTS document:

<?xml version = "1.0" encoding="UTF-8" standalone = "yes"?>
<!DOCTYPE CONTACTS [
	ELEMENT_DEFINITIONS_GO_HERE
	]>
BODY_GOES_HERE.......

The Prolog and The Body
Introduction to XML For Web Developers | Table of Contents
Element Type Declarations (ETDs)


Up to => Home / Authoring / Languages / XML / Tutorials / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers