Appendix D
D-2 Appendix D
Elements are the basic unit of XML content. An element consists of a start tag and an end tag,
and everything in between. For example, consider the following element:
<NAME>George</NAME>.
In this example,
<NAME> (start tag) and </NAME> (end tag) comprise the markup, and
"George" comprises the data. Because XML is extensible, tags can be defined specifically for
the data they are meant to describe.
Elements can also contain other elements other than data.
<NAME>
<FIRST>George</FIRST>
<LAST>Smith</LAST>
</NAME>
In this example, the outermost element
<NAME> emcompasses two other elements that contain
data. All elements combined make up the XML document.