< Elements >

XML elements (aka tags) consist of a start-tag, followed by the element name, followed by zero or more attributes, followed by an end-tag.


Ex 1. Empty Element
<ticket/>


Ex 2. Element with Content
<name>Jonathan</name>


Ex 3. Element with an Attribute
<job type="executive">Chief Executive Officer</job>


Ex 4. Empty Element with Attributes
<car make="Honda" model="Civic" year="1996"/>