1 | External DTD |
2 | <?xml version="1.0"?> |
3 | <!DOCTYPE greeting SYSTEM "hello.dtd"> |
4 | <greeting>Hello</greeting> |
5 | Internal DTD |
6 | <?xml version="1.0"?> |
7 | <!DOCTYPE greeting [ |
8 | <!ELEMENT greeting (#PCDATA)> |
9 | ]> |
10 | <greeting>Hello</greeting> |
11 | Standalone Document Declaration section can be used to specify which DTD should be used |
12 | <xml version="1.0" standalone=`yes' ?> |