Elements




Element names conform to a set of rules prescribed in the XML specification that you can read at

http://www.w3.org/TR/REC-xml. The specification essentially says that element names can consist of
letters or underscores followed by letters, digits, periods, hyphens, and underscores. Spaces are not
permitted in element names. Elements are the building blocks of XML documents and can contain data,
other elements, or both, and are always delimited by start and end tags. XML has no predefined elements;
you define elements as needed to adequately describe the data contained in an XML document. The
following document describes a collection of books:

<?xml version=”1.0”?>
<books>

<book>

<title>XSLT Programmers Reference</title>
<author>Michael Kay</author>
<year>2003</year>

</book>
<book>