DTD
XML EXAMPLE 1
DTD
ELEMENTS
PCDATA

PARENTS  2
addressbook
contact
 

CHILDREN  3
name
address
city
state
zip

phone

voice

 fax

email

web

company

 

ENUMERATION  4
+ occur more than once

? occur only once


Fish Photo Caption
<!ELEMENT addressbook (contact)+>

<!ELEMENT contact (name, address+, city, state, zip, phone, email, web, company)>

<!ELEMENT name (#PCDATA)>

<!ELEMENT address (#PCDATA)>

<!ELEMENT city  (#PCDATA)>

<!ELEMENT state (#PCDATA)>

<!ELEMENT zip  (#PCDATA)>

<!ELEMENT phone  (voice, fax?)>

<!ELEMENT voice (#PCDATA)>

<!ELEMENT fax  (#PCDATA)>

<!ELEMENT email  (#PCDATA)>

<!ELEMENT web (#PCDATA)>

<!ELEMENT company  (#PCDATA)>

+ may occur more than once; phone with child elements voice and fax, ? only once

Copyright by New Millennium Software

email for comments or requests