2. XML Elements

XML Elements are the main building blocks of XML documents. XML Elements can contain text, other elements, or be empty.

Example 2.1 An XML Element Containing Text
<sampleelement>Text of an element</sampleelement>
Example 2.2 An XML Element Containing Other Elements
	<otherelement1>Text of an element</otherelement1>
	<otherelement2>Text of an element</otherelement2>
Example 2.3 An XML Empty Element
<sampleelement />