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 definitions

The Element element is used to define an element. (As mentioned previously, awkward sentences like this are hard to avoid with this standard). The Name attribute specifies the name of the element to be defined:

<element name="book" ... />

<!-- DTD EQUIVALENT: <!ELEMENT book ...> -->

This definition permits the 'book' element to occur within a conforming document instance:

<book>...</book>

Note that the Element element may be empty, as in the example above, but complex element definitions require this element to be a container for other instruction elements.

Any content

In the simplest possible form of declaration, the Element element is not only empty, but also has no attributes. This indicates that the element may contain ...

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