previous
|
start
|
next
Specifying a DTD in an XML Document
An XML document can reference a DTD in one of two ways
The document may contain the DTD
The document may refer to a DTD stored elsewhere
A DTD is introduced with the
DOCTYPE
declaration
If the document contains its DTD, the declaration looks like this:
<!DOCTYPE
rootElement
[
rules
]>
previous
|
start
|
next