Basic HTML version of Foils prepared May 19 99

Foil 36 XML Example - the DTD

From An Introduction to XML Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Nancy McCracken,Ozgur Balsoy, Tom Scavo


1 Create a DTD file for an address book named "ab.dtd"
2 <!ELEMENT addressBook (person)+>
3 <!ELEMENT person (name, email*, link?) >
4 <!ATTLIST person id ID #REQUIRED >
5 <!ATTLIST person gender (male|female)#IMPLIED >
6 <!ELEMENT name (#PCDATA|(family,given))>
7 <!ELEMENT family (#PCDATA)>
8 <!ELEMENT given (#PCDATA)>
9 <!ELEMENT email (#PCDATA)>
10 <!ELEMENT link EMPTY > <!ATTLIST link manager IDREF #IMPLIED subordinates IDREFS #IMPLIED >

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed May 19 1999