August 2000
Beginner
456 pages
9h 24m
English
In keeping with the general rule of moving things into separate files whenever possible, Listing 5.10 shows a separate file for the DTD.
1: <?xml version="1.0"?>
2: <!-- This file is an external DTD that will be imported into
another file. -->
3: <!ELEMENT E-MAIL (TO+,FROM,CC*,BCC*,SUBJECT?,BODY?)>
4: <!ELEMENT TO (#PCDATA)>
5: <!ELEMENT FROM (#PCDATA)>
6: <!ELEMENT CC (#PCDATA)>
7: <!ELEMENT BCC (#PCDATA)>
8: <!ELEMENT SUBJECT (#PCDATA)>
9: <!ELEMENT BODY (#PCDATA)>
10:
11: <!ENTITY BCCPREFIX "A nice ">
|
Listing 5.11 imports the program from Listing 5.10.
1: <?xml version="1.0"?> 2: <!-- This file ... |
Read now
Unlock full access