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


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



© 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