Associating an XML Document with an External DTD

To associate an XML document with an external DTD, add a DOCTYPE element to the beginning of your XML document. The DOCTYPE element should be immediately after the XML declaration element. The format of the DOCTYPE element is

<!DOCTYPE root_element_name SYSTEM "path_to_dtd ">

Replace root_element_name with the name of the root element in your XML document.

Replace path_to_dtd with the path for the DTD you want your document to use.

 
Free Stylus Studio XML Training: