QML - Create Your Own Adventure

XML Element

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:

  1. <element />
  2. <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:

  1. <element a="1" b="2"/>
  2. <element
        a = "1"
        b = "2" />

Note that this kind of formatting might get lost when the XML document is reloaded!