External DTD |
<?xml version="1.0"?> |
<!DOCTYPE greeting SYSTEM "hello.dtd"> |
<greeting>Hello</greeting> |
Internal DTD |
<?xml version="1.0"?> |
<!DOCTYPE greeting [ |
<!ELEMENT greeting (#PCDATA)> |
]> |
<greeting>Hello</greeting> |
Standalone Document Declaration section can be used to specify which DTD should be used |
<xml version="1.0" standalone=`yes' ?> |