GS-Base Help > Simplified GS-Base Zip Database Files

A "simplified" GS-Base file can be created manually by users or by other applications and contains only plain *.txt text files representing lists of records of subsequent database tables. Each such text table should be accompanied by a small *.xml file specifying the text file options and field types. The *.xml files should match the names of the included text *.txt tables. If the *.xml files are not present, opening the database file will require more resources and GS-Base will display the "Open Text File" dialog box for each table.

If text options are omitted, the default text import settings will be used. If the "field name", "field type" or both are omitted, GS-Base will determine these values by reading the text tables.

Sample *.xml files:

Sample 1.

<?xml version="1.0" encoding="UTF-8"?>
<gs-base-table>
<text-file-options
	use-separator="true"
	separator='tab'
	use-quoting="true"
	quoting-symbol='"'
	use-fixed-widths="false"
	fixed-widths=""
	field-names-in-first-row="true"
	text-to-numbers="true"
	text-to-dates="true"
	encoding="utf-8"/>
<fields>
	<field>
		<field-name>field a</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field b</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field c</field-name>
		<field-type>N</field-type>
	</field>
</fields>
</gs-base-table>

Sample 2.

<?xml version="1.0" encoding="UTF-8"?>
<gs-base-table>
<text-file-options
	use-separator="true"
	separator=','
	use-quoting="true"
	quoting-symbol='"'
	use-fixed-widths="false"
	fixed-widths=""
	field-names-in-first-row="true"
	text-to-numbers="true"
	text-to-dates="true"
	encoding="ansi"
	iso-code-page="Default Ansi code page"/>
<fields>
	<field>
		<field-name>field a</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field b</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field c</field-name>
		<field-type>N</field-type>
	</field>
</fields>
</gs-base-table>

Related Topics

GS-Base database file format