An XML element can consist of an opening and closing
tag, or just a single tag. A tag always starts with "<" and ends
with ">". A tag pair is one that encloses other elements
or text, for example: <element>Text</element>.
A single tag doesn't contain anything, for example: <element/>.
Element names are case-sensitive.
The two following are not the same:
- <element />
- <Element />
You can use line-breaks within a single element, so that it spans multiple lines. You can also use different spacing. The two following are the same:
- <element a="1" b="2"/>
a = "1"
b = "2" />
Note that this kind of formatting might get lost when the XML document is reloaded!