1.40 kiriwrite_output_xml
kiriwrite_output_xml outputs a file in the XML format and is mainly used for writing a configuration file. All parameters in the subroutine are required.
Parameters:
kiriwrite_output_xml(filename, type, options);
Usage:
kiriwrite_output_xml("kiriwrite.xml", "config", { DatabaseDirectory => “db”, OutputDirectory => “output”, ImagesURIPath => “/images/kiriwrite”, DateTimeFormat => “DD/MM/YY (hh:mm:ss)”, SystemLanguage => “en-GB”, PresentationModule => “HTML4S”, DatabaseModule => “SQLite”, DatabaseServer => “localhost”, DatabasePort => “3306”, DatabaseProtocol => “tcp”, DatabaseSQLDatabase => “database”, DatabaseUsername => “username”, DatabasePassword => “password”, DatabaseTablePrefix => “tableprefix” });
filename
Specifies the filename to output the configuration file to.
type
Specifies the type of XML file to output (the only available option being 'config').
options
Specifies the options to use as a hash.
Value |
Description |
DatabaseDirectory |
Specifies the database directory to use. |
OutputDirectory |
Specifies the output directory to use. |
ImagesURIPath |
Specifies the URI path of the images directory. |
DateTimeFormat |
Specifies the date and time format that should be used. |
SystemLanguage |
Specifies the language that Kiriwrite will use. |
PresentationModule |
Specifies the presentation module in Kiriwrite to use. |
DatabaseModule |
Specifies the database module in Kiriwrite to use. |
The following settings are for the server-based database modules:
Value |
Description |
DatabaseServer |
Specifies the location of the database server. |
DatabasePort |
Specifies the port of the database server. |
DatabaseProtocol |
Specifies the protocol to use with the database server. |
DatabaseSQLDatabase |
Specifies the database name to use. |
DatabaseUsername |
Specifies the database username to use. |
DatabasePasswordKeep |
Specifies if the current database password should be kept. |
DatabasePassword |
Specifies the database password to use. |
DatabaseTablePrefix |
Specifies the table prefix to use for the tables used in Kiriwrite when using a server-based database module. |