O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Element declarations

An element declaration is used to define a new element and specify its allowed content. The keyword 'ELEMENT' introduces an element declaration. The name of the element being declared follows (recall the constraint to an initial letter, underscore character, '_', or colon, ':', and thereafter also digits, '.' and '-'), separated by at least one space character:

<!ELEMENT title ..... >

A statement of the legal content of the element is the final required part of the declaration. An element may have no content at all, may have content of only child elements, of only text, or of a mixture of elements and text. If the element can hold no child elements, and also no text, then it is known as an empty element. The keyword 'EMPTY' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required