Note - if you use nwnlib or nwn gfftoxml in java etc
<!-- This file was generated by the NWNTools GFF to XML writer.
http://nwntools.sf.net/
** Do not hand edit unless you know what you are doing. **
-->
<gff name="module.jrl" type="JRL " version="V3.2" >
<struct id="-1" >
<element name="Categories" type="15" >
<struct id="0" >
<element name="Name" type="12" value="-1" >
<localString languageId="0" value="Back-Story" />
</element>
<element name="XP" type="4" value="0" />
<element name="Priority" type="4" value="4" />
<element name="Picture" type="2" value="65535" />
<element name="Comment" type="10" value="" />
<element name="Tag" type="10" value="bk_story" />
<element name="EntryList" type="15" >
<struct id="0" >
<element name="ID" type="4" value="1" />
<element name="End" type="2" value="0" />
<element name="Text" type="12" value="-1" >
<localString languageId="0" >
<value><![CDATA[You live in a small village named Trondheim in around 600 AD. Your family are gone. Your Mother died from plague many years ago while your Father was forced to fight in the wars, he never returned. Amongst all the other villagers, only Ellias was your friend. A kindred soul who had felt as much loss as you had.]]></value>
</localString>
</element>
</struct>
</element>
</struct>
<struct id="1" >
<element name="Name" type="12" value="-1" >
<localString languageId="0" value="Welcome" />
</element>
<element name="XP" type="4" value="0" />
<element name="Priority" type="4" value="4" />
<element name="Picture" type="2" value="65535" />
<element name="Comment" type="10" value="" />
<element name="Tag" type="10" value="welcome" />
<element name="EntryList" type="15" >
<struct id="0" >
<element name="ID" type="4" value="1" />
<element name="End" type="2" value="1" />
<element name="Text" type="12" value="-1" >
<localString languageId="0" value="Welcome to Aeoria" />
</element>
</struct>
</element>
</struct>
</element>
</struct>
</gff>
You can convert from / to xml.
I am looking into making journal entries database objects that at module build time get pulled down into an xml, and then converted into the gff object for packaging int the module.
To get this working in my build process on Jenkins I will probably try to develop the system in java.
Eg: Database reading, construction of the xml etc