Basic HTML version of Foils prepared May 19 99

Foil 30 Element Declarations

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


Keyword ELEMENT Introduces a new element <!ELEMENT title .........>
Element name must begin with a letter, and may additionally contain digits and some punctuations, i.e. `.', `-', `_', and `:'
If an element can hold no child elements, and also no text, then it is known as empty element and denoted by EMPTY
An element declared to have a content .of ANY may contain all of the other elements declared in the DTD
<!ELEMENT p ANY> <!ELEMENT image EMPTY>
Empty element usage: <image></image> or <image/>



© 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