Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Internal Versus External DTD

Document Type Definitions can be incorporated into your XML documents in one of two ways: internally or externally.

As we've discussed in earlier chapters, the first line in your XML document should be the XML declaration

<?xml version="1.0" ?> 

Although this is not a formal requirement of XML, and XML is not required to contain this prolog, it is good form and a good authoring habit to always include it.

The next section that should follow the XML declaration, if you are authoring valid XML, is what is called the Document Type Declaration, and it takes the following form:

<!DOCTYPE name    SYSTEM uri> 

name and uri conform to the rules for naming and URIs. This Document Type Declaration is what is used to point to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book