<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://tptiap.co.uk/index.php?action=history&amp;feed=atom&amp;title=Modding%3AXML_File_Format_Primer</id>
	<title>Modding:XML File Format Primer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tptiap.co.uk/index.php?action=history&amp;feed=atom&amp;title=Modding%3AXML_File_Format_Primer"/>
	<link rel="alternate" type="text/html" href="http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;action=history"/>
	<updated>2026-04-06T12:49:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3252&amp;oldid=prev</id>
		<title>Sightglass: Note about order of elements</title>
		<link rel="alternate" type="text/html" href="http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3252&amp;oldid=prev"/>
		<updated>2024-02-22T01:13:25Z</updated>

		<summary type="html">&lt;p&gt;Note about order of elements&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:13, 22 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tags can also have &amp;#039;&amp;#039;&amp;#039;attributes&amp;#039;&amp;#039;&amp;#039;, which are key-value pairs included in the opening tag and formatted like: &amp;lt;code&amp;gt;&amp;lt;tag key1=&amp;quot;value1&amp;quot; key2=&amp;quot;value2&amp;quot;&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. Each attribute in a tag must be unique.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tags can also have &amp;#039;&amp;#039;&amp;#039;attributes&amp;#039;&amp;#039;&amp;#039;, which are key-value pairs included in the opening tag and formatted like: &amp;lt;code&amp;gt;&amp;lt;tag key1=&amp;quot;value1&amp;quot; key2=&amp;quot;value2&amp;quot;&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. Each attribute in a tag must be unique.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The order in which elements appear usually does not matter. When the game is looking for an element with a specific name, it will find the first matching one within the scope. If the game is looking for multiple elements with a name, it will generally iterate through all of them in a certain scope.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Modding Guides]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Modding Guides]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sightglass</name></author>
	</entry>
	<entry>
		<id>http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3222&amp;oldid=prev</id>
		<title>Sightglass: Add Modding Guide category tag</title>
		<link rel="alternate" type="text/html" href="http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3222&amp;oldid=prev"/>
		<updated>2024-02-21T05:44:54Z</updated>

		<summary type="html">&lt;p&gt;Add Modding Guide category tag&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:44, 21 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tags can also have &amp;#039;&amp;#039;&amp;#039;attributes&amp;#039;&amp;#039;&amp;#039;, which are key-value pairs included in the opening tag and formatted like: &amp;lt;code&amp;gt;&amp;lt;tag key1=&amp;quot;value1&amp;quot; key2=&amp;quot;value2&amp;quot;&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. Each attribute in a tag must be unique.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tags can also have &amp;#039;&amp;#039;&amp;#039;attributes&amp;#039;&amp;#039;&amp;#039;, which are key-value pairs included in the opening tag and formatted like: &amp;lt;code&amp;gt;&amp;lt;tag key1=&amp;quot;value1&amp;quot; key2=&amp;quot;value2&amp;quot;&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. Each attribute in a tag must be unique.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Modding Guides]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sightglass</name></author>
	</entry>
	<entry>
		<id>http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3216&amp;oldid=prev</id>
		<title>Sightglass: Page created</title>
		<link rel="alternate" type="text/html" href="http://tptiap.co.uk/index.php?title=Modding:XML_File_Format_Primer&amp;diff=3216&amp;oldid=prev"/>
		<updated>2024-02-21T05:34:37Z</updated>

		<summary type="html">&lt;p&gt;Page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Lilith&amp;#039;s Throne modding system loads in content as Extensible Markup Language (XML) text files. It&amp;#039;s just text formatted to fit a certain structure, and they can be opened and edited by any text editor, though some will have tools like syntax highlighting and XML-checking tools to help catch mistakes.&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a dummy example, to show how things are structured:&amp;lt;blockquote&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tag&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;element&amp;gt;text content&amp;lt;/element&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;emptyTag/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;cdataElement&amp;gt;&amp;lt;![CDATA[CData Stuff]]&amp;gt;&amp;lt;/cdataElement&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;elementWithAttribute attribute=&amp;quot;attribute value&amp;quot; secondAttribute=&amp;quot;second value&amp;quot;&amp;gt;this is also content&amp;lt;/elementWithAttribute&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;emptyTagWithAttribue attribute=&amp;quot;this is also an attribute value&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;outerElement&amp;gt;&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;nestedElement attribute=&amp;quot;yet another attribute&amp;quot;&amp;gt;this is content too&amp;lt;/nestedElement&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nestedElement attribute=&amp;quot;yet another attribute&amp;quot;&amp;gt;contented for a second&amp;lt;/nestedElement&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;/outerElement&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tag&amp;gt;&amp;lt;/blockquote&amp;gt;An XML file is arranged as &amp;#039;&amp;#039;&amp;#039;elements&amp;#039;&amp;#039;&amp;#039;, each having an &amp;#039;&amp;#039;&amp;#039;opening tag&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;tag&amp;gt;&amp;lt;/code&amp;gt; and a &amp;#039;&amp;#039;&amp;#039;closing tag&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The name of an element (which goes in the tag) follows a few simple rules:&lt;br /&gt;
&lt;br /&gt;
# Must start with a letter or underscore ( _ )&lt;br /&gt;
# Cannot start with &amp;lt;code&amp;gt;xml&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Are case sensitive!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Cannot contain spaces!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Can also have digits, hyphens, and periods, in addition to letters and underscores, but can&amp;#039;t start with those (rule 1)&lt;br /&gt;
&lt;br /&gt;
(Note: Most tag names used for LT are only letters with occasional numbers, and are usually in &amp;lt;code&amp;gt;camelCase&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The stuff between the tags of an element, there may be &amp;#039;&amp;#039;&amp;#039;content&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;&amp;lt;element&amp;gt;text content&amp;lt;/element&amp;gt;&amp;lt;/code&amp;gt;. An element without content is usually entered as a &amp;#039;&amp;#039;&amp;#039;self-closing tag&amp;#039;&amp;#039;&amp;#039; ending in a slash: &amp;lt;code&amp;gt;&amp;lt;emptyTag/&amp;gt;&amp;lt;/code&amp;gt;, or otherwise entered as tags with nothing between them: &amp;lt;code&amp;gt;&amp;lt;tag&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. An element&amp;#039;s content may be &amp;#039;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;#039; or another element, which is called a &amp;#039;&amp;#039;&amp;#039;child element&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;&amp;lt;element&amp;gt;&amp;lt;childElement/&amp;gt;&amp;lt;/element&amp;gt;&amp;lt;/code&amp;gt;. Child elements can open with the same tag as others nested in the same parent.&lt;br /&gt;
&lt;br /&gt;
Content for a tag in the form of &amp;lt;code&amp;gt;&amp;lt;![CDATA[CData Stuff]]&amp;gt;&amp;lt;/code&amp;gt; is &amp;quot;&amp;#039;&amp;#039;&amp;#039;character data&amp;#039;&amp;#039;&amp;#039;&amp;quot;, used to encapsulate text that may otherwise be interfere with the syntax of an XML document. For LT, it usually marks something that is sent to through a parser to perform scripting commands and/or displayed on screen as text.&lt;br /&gt;
&lt;br /&gt;
Tags can also have &amp;#039;&amp;#039;&amp;#039;attributes&amp;#039;&amp;#039;&amp;#039;, which are key-value pairs included in the opening tag and formatted like: &amp;lt;code&amp;gt;&amp;lt;tag key1=&amp;quot;value1&amp;quot; key2=&amp;quot;value2&amp;quot;&amp;gt;&amp;lt;/tag&amp;gt;&amp;lt;/code&amp;gt;. Each attribute in a tag must be unique.&lt;/div&gt;</summary>
		<author><name>Sightglass</name></author>
	</entry>
</feed>