<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=PPKFS</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=PPKFS"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/PPKFS"/>
	<updated>2026-04-06T13:35:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293451</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293451"/>
		<updated>2023-05-26T13:14:49Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: /*  - legends_plus.xml */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that supplements at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes as well as some additional information of node types present in the vanilla ``legends.xml``.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated. String.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated. String.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
The contents of each node item can be:   &lt;br /&gt;
&lt;br /&gt;
* (optionally signed) integer literal&lt;br /&gt;
* string&lt;br /&gt;
* a specific set of enum values (either string or integer)&lt;br /&gt;
* a list of items delimited by pipes; ``|`` (e.g. ``4,5|4,6``)&lt;br /&gt;
* a coordinate pair ``integer,integer`` (e.g. ``4,5``)&lt;br /&gt;
&lt;br /&gt;
Nodes can either be:&lt;br /&gt;
&lt;br /&gt;
* Quantity 1 - this node is always present and unique per item.  &lt;br /&gt;
* Quantity 0-1 - this node is not always present but is unique if present.&lt;br /&gt;
* Quantity 1+ - this node is always present but can have duplicates.&lt;br /&gt;
* Quantity 0+ - this node is not always present but can have duplicates.&lt;br /&gt;
&lt;br /&gt;
== Geography == &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: hills, forest, grassland, desert, lake, mountains, wetland, glacier, tundra, ocean&lt;br /&gt;
|-&lt;br /&gt;
| name || 1 || string || The translated name of the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|-&lt;br /&gt;
| evilness || 1 || string enum || One of: good, neutral, evil.&lt;br /&gt;
|-&lt;br /&gt;
| force_id || 0-1 || integer || &amp;lt;info needed&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;underground_region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;underground_region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Underground region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: cavern, underworld, magma&lt;br /&gt;
|-&lt;br /&gt;
| depth || 1 || integer || &amp;lt;info needed&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;underground_region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;underground_region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Underground region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293446</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293446"/>
		<updated>2023-05-25T14:13:46Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Regions -&amp;gt; Geographical, add underground regions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that supplements at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes as well as some additional information of node types present in the vanilla ``legends.xml``.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated. String.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated. String.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
The contents of each node item can be:   &lt;br /&gt;
&lt;br /&gt;
* (optionally signed) integer literal&lt;br /&gt;
* string&lt;br /&gt;
* a specific set of enum values (either string or integer)&lt;br /&gt;
* a list of items delimited by pipes; ``|`` (e.g. ``4,5|4,6``)&lt;br /&gt;
* a coordinate pair ``integer,integer`` (e.g. ``4,5``)&lt;br /&gt;
&lt;br /&gt;
Nodes can either be:&lt;br /&gt;
&lt;br /&gt;
* Quantity 1 - this node is always present and unique per item.  &lt;br /&gt;
* Quantity 0-1 - this node is not always present but is unique if present.&lt;br /&gt;
* Quantity 1+ - this node is always present but can have duplicates.&lt;br /&gt;
* Quantity 0+ - this node is not always present but can have duplicates.&lt;br /&gt;
&lt;br /&gt;
== Geography == &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: hills, forest, grassland, desert, lake, mountains, wetland, glacier, tundra, ocean&lt;br /&gt;
|-&lt;br /&gt;
| name || 1 || string || The translated name of the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|-&lt;br /&gt;
| evilness || 1 || string enum || One of: good, neutral, evil.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;underground_region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;underground_region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Underground region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: cavern, underworld, magma&lt;br /&gt;
|-&lt;br /&gt;
| depth || 1 || integer || &amp;lt;info needed&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;underground_region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;underground_region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Underground region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293445</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293445"/>
		<updated>2023-05-25T14:09:12Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: /* Formatting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that supplements at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes as well as some additional information of node types present in the vanilla ``legends.xml``.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated. String.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated. String.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
The contents of each node item can be:   &lt;br /&gt;
&lt;br /&gt;
* (optionally signed) integer literal&lt;br /&gt;
* string&lt;br /&gt;
* a specific set of enum values (either string or integer)&lt;br /&gt;
* a list of items delimited by pipes; ``|`` (e.g. ``4,5|4,6``)&lt;br /&gt;
* a coordinate pair ``integer,integer`` (e.g. ``4,5``)&lt;br /&gt;
&lt;br /&gt;
Nodes can either be:&lt;br /&gt;
&lt;br /&gt;
* Quantity 1 - this node is always present and unique per item.  &lt;br /&gt;
* Quantity 0-1 - this node is not always present but is unique if present.&lt;br /&gt;
* Quantity 1+ - this node is always present but can have duplicates.&lt;br /&gt;
* Quantity 0+ - this node is not always present but can have duplicates.&lt;br /&gt;
&lt;br /&gt;
== Regions ==&lt;br /&gt;
&lt;br /&gt;
Collected under the ``&amp;lt;regions&amp;gt;`` node as individual``&amp;lt;region&amp;gt;`` nodes.   &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: hills, forest, grassland, desert, lake, mountains, wetland, glacier, tundra, ocean&lt;br /&gt;
|-&lt;br /&gt;
| name || 1 || string || The translated name of the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|-&lt;br /&gt;
| evilness || 1 || string enum || One of: good, neutral, evil.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293444</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293444"/>
		<updated>2023-05-25T14:06:34Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: /* Regions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that supplements at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes as well as some additional information of node types present in the vanilla ``legends.xml``.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated. String.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated. String.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
The contents of each node item can be:   &lt;br /&gt;
&lt;br /&gt;
* (optionally signed) integer literal&lt;br /&gt;
* string&lt;br /&gt;
* a specific set of enum values (either string or integer)&lt;br /&gt;
* a list of items delimited by pipes; ``|`` (e.g. ``4,5|4,6``)&lt;br /&gt;
* a coordinate pair ``integer,integer`` (e.g. ``4,5``)&lt;br /&gt;
&lt;br /&gt;
== Regions ==&lt;br /&gt;
&lt;br /&gt;
Collected under the ``&amp;lt;regions&amp;gt;`` node as individual``&amp;lt;region&amp;gt;`` nodes.   &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: hills, forest, grassland, desert, lake, mountains, wetland, glacier, tundra, ocean&lt;br /&gt;
|-&lt;br /&gt;
| name || 1 || string || The translated name of the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;region&amp;gt; - legends_plus.xml ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|-&lt;br /&gt;
| evilness || 1 || string enum || One of: good, neutral, evil.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293443</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293443"/>
		<updated>2023-05-25T14:02:08Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Add info on `regions`&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that supplements at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes as well as some additional information of node types present in the vanilla ``legends.xml``.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated. String.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated. String.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Formatting ==&lt;br /&gt;
The contents of each node item can be:   &lt;br /&gt;
&lt;br /&gt;
* (optionally signed) integer literal&lt;br /&gt;
* string&lt;br /&gt;
* a specific set of enum values (either string or integer)&lt;br /&gt;
* a list of items delimited by pipes; ``|`` (e.g. ``4,5|4,6``)&lt;br /&gt;
* a coordinate pair ``integer,integer`` (e.g. ``4,5``)&lt;br /&gt;
&lt;br /&gt;
== Regions ==&lt;br /&gt;
&lt;br /&gt;
Collected under the ``&amp;lt;regions&amp;gt;`` node as individual``&amp;lt;region&amp;gt;`` nodes.   &lt;br /&gt;
In the vanilla ``legends.xml`` file:&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| type || 1 || string enum || One of: hills, forest, grassland, desert, lake, mountains, wetland, glacier, tundra, ocean&lt;br /&gt;
|-&lt;br /&gt;
| name || 1 || string || The translated name of the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the DFHack ``legends_plus.xml`` file:   &lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+ &amp;lt;region&amp;gt; - legends_plus.xml&lt;br /&gt;
|-&lt;br /&gt;
! Node name !! Quantity !! Type !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| id || 1 || integer || Region ID.&lt;br /&gt;
|-&lt;br /&gt;
| coords || 1 || list of coords || A list of squares in the world that are in this region. Sorted in increasing order of x and then y.&lt;br /&gt;
|-&lt;br /&gt;
| evilness || 1 || string enum || One of: good, neutral, evil.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293347</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293347"/>
		<updated>2023-05-23T12:15:03Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Fix formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that includes at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes, some extended node types present in the vanilla ``legends.xml``, and some new nodes.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description  &lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- &lt;br /&gt;
| identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
|- &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
|- &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293346</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293346"/>
		<updated>2023-05-23T12:13:08Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Add a full coverage of every field as well as the legends_plus file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that includes at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the vanilla legends.XML file ==&lt;br /&gt;
&lt;br /&gt;
* The file is encoded in [https://en.wikipedia.org/wiki/Code_page_437 CP437], and therefore will not be decode-able directly to UTF8.&lt;br /&gt;
* The top-level node is ``df_world`` node. This contains 14 child nodes, each of which acts as a collection of identically formed child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with structures present in the site.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content, location, or holder (if relevant).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export).&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || Historical figures with entities associated to them.&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || Each entity_population node contains an id and no further information.&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || A civilisation, group, unit, or other organised collection of creatures. In the case of non-sentient civilisations, entries will consist of only an id.&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || An event with a timestamp, type, and location. Some events contain links to involved entities and figures.&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || A collection of historical events that are related to each other (for example, wars).&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era || The timeframe of each historical era.&lt;br /&gt;
|- written_contents || written_content || A piece of written content with its author, title, and length.&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || Description of a poetic form.&lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || Description of a musical form.&lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || Description of a dance form.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contents of the DFhack legends_plus.XML file ==&lt;br /&gt;
&lt;br /&gt;
* Encoded in UTF-8, rather than in CP437.  &lt;br /&gt;
* Also has a top-level ``df_world`` node.  &lt;br /&gt;
* Contains some new nodes, some extended node types present in the vanilla ``legends.xml``, and some new nodes.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! Relation to vanilla ``legends.XML`` content !! Description&lt;br /&gt;
|-&lt;br /&gt;
| name ||  || only present here || The name of the world, untranslated.&lt;br /&gt;
|- &lt;br /&gt;
| altname || || only present here || The name of the world, translated.&lt;br /&gt;
|-&lt;br /&gt;
| landmasses || landmass || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| mountain_peaks || mountain_peak || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| regions || region || additional information || &lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| rivers || river || only present here || &lt;br /&gt;
|-&lt;br /&gt;
| creature_raw || creature || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || additional information&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure || additional information, some duplication ||&lt;br /&gt;
|- identities || identity || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || only present (with information) here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event || additional information ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationships || historical_event_relationship || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_relationship_supplements || historical_event_relationship_supplement || only present here ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || || additional information (?) || appears to be empty.&lt;br /&gt;
|-&lt;br /&gt;
| written_contents || written_content || additional information ||&lt;br /&gt;
| - &lt;br /&gt;
| poetic_forms || poetic_form || duplicated information (name) ||&lt;br /&gt;
| - &lt;br /&gt;
| musical_forms || musical_form || duplicated information (name) ||&lt;br /&gt;
| - &lt;br /&gt;
| dance_forms || dance_form || duplicated information (name) ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293345</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293345"/>
		<updated>2023-05-23T11:23:10Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Add info on world_constructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that includes at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the XML file ==&lt;br /&gt;
&lt;br /&gt;
The XML file has, at the top-level, the `df_world` node. This contains 14 child nodes, each of which acts as a list of identical child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! content&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with a location, site type, and structures contained.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content (if books, scrolls, etc.) or location (if lost) or holder (if wielded).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || This section appears to be blank in legends.xml (the vanilla export) but contains the name and type of world constructions in the DFhack exported xml.&lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || &lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || &lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era ||&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || &lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || &lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293344</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293344"/>
		<updated>2023-05-23T10:59:06Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: Starting on adding details of the current state of the XML dump based on my work parsing it.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that includes at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== Contents of the XML file ==&lt;br /&gt;
&lt;br /&gt;
The XML file has, at the top-level, the `df_world` node. This contains 14 child nodes, each of which acts as a list of identical child nodes. The nodes are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ df_world format&lt;br /&gt;
|-&lt;br /&gt;
! Parent node !! Individual node name !! content&lt;br /&gt;
|-&lt;br /&gt;
| regions || region || A named region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| underground_regions || underground_region || An unnamed underground region of the world map.&lt;br /&gt;
|-&lt;br /&gt;
| sites || site || A site on the map with a location, site type, and structures contained.&lt;br /&gt;
|-&lt;br /&gt;
| artifacts || artifact || Artifacts with their associated written content (if books, scrolls, etc.) or location (if lost) or holder (if wielded).&lt;br /&gt;
|-&lt;br /&gt;
| world_constructions || world_construction || &lt;br /&gt;
|-&lt;br /&gt;
| historical_figures || historical_figure ||&lt;br /&gt;
|-&lt;br /&gt;
| entity_populations || entity_population ||&lt;br /&gt;
|-&lt;br /&gt;
| entities || entity || &lt;br /&gt;
|-&lt;br /&gt;
| historical_events || historical_event ||&lt;br /&gt;
|-&lt;br /&gt;
| historical_event_collections || historical_event_collection || &lt;br /&gt;
|-&lt;br /&gt;
| historical_eras || historical_era ||&lt;br /&gt;
|-&lt;br /&gt;
| poetic_forms || poetic_form || &lt;br /&gt;
|-&lt;br /&gt;
| musical_forms || musical_form || &lt;br /&gt;
|-&lt;br /&gt;
| dance_forms || dance_form || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293343</id>
		<title>XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=XML_dump&amp;diff=293343"/>
		<updated>2023-05-23T10:49:18Z</updated>

		<summary type="html">&lt;p&gt;PPKFS: This feature is back, at least in part.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{migrated article}}&lt;br /&gt;
{{Quality|Tattered}}&lt;br /&gt;
{{av}}&lt;br /&gt;
&lt;br /&gt;
{{old|v=50.01}}&lt;br /&gt;
&lt;br /&gt;
An '''XML dump''' of a world's history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in the ''Dwarf Fortress'' root folder. The dump consists of many internals ''Dwarf Fortress'' tracks about the world in [[wikipedia:XML|XML format]].  Be warned that the generated XML file can be quite large, even a gigabyte or more, especially for long-lived worlds with many [[historical figure]]s.  The dump is currently incomplete and is missing a lot of data about the world.  The third-party utility [[Utility:DFHack|DFHack]] can output a more thorough legends_plus.xml dump that includes at least some of the missing information. &lt;br /&gt;
&lt;br /&gt;
== Format ==&lt;br /&gt;
&lt;br /&gt;
A non-exhaustive breakdown of ''Dwarf Fortress'' XML export tags is available [http://pastebin.com/wb2zLvRh here].&lt;br /&gt;
&lt;br /&gt;
The [[v0.31:XML_dump|v0.31 xml dump page]] contains a lot of detail about the dumped information, and a lot of it is still accurate for this version.&lt;br /&gt;
&lt;br /&gt;
=== seconds72 ===&lt;br /&gt;
&lt;br /&gt;
These values specify when during the year an event occurred.  For example, the ''birth_seconds72'' and ''death_seconds72'' subelements of ''historical_figure'' elements have values of this type. &lt;br /&gt;
&lt;br /&gt;
There are 12 months in a ''Dwarf Fortress'' [[Calendar|year]], exactly 28 days in each month, 24 hours in each day, 60 minutes in each hour, and 60 seconds in each minute.  Divide seconds by 72 to get the seconds72 value.  There are 1,200 seconds72 in a day.  There are 403,200 seconds72 in a ''Dwarf Fortress'' year.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by older versions of [[utility:DFHack|DFHack]], where plugins (such as &amp;quot;workflow&amp;quot;) saved their settings as unreadable historical figures.  There are several ways to fix this:&lt;br /&gt;
* Clear the settings for the various plugins in fortress mode before exporting legends&lt;br /&gt;
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)&lt;br /&gt;
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above&lt;br /&gt;
&lt;br /&gt;
Versions of DFHack made for Dwarf Fortress 0.47.01 and later should not suffer from this problem.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]&lt;br /&gt;
* [[Utilities#Legends_tools|Legends Utilities]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
&lt;br /&gt;
{{Category|Files}}&lt;br /&gt;
[[ru:XML dump]]&lt;/div&gt;</summary>
		<author><name>PPKFS</name></author>
	</entry>
</feed>