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


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

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