## Supported Data Formats

### Reading

It is possible to open bases encoded as LGX, LGA and, under certain circumstances, also XML.

#### LGX (LMPS for Windows Gzipped XML Database)

During runtime, base data is stored in a structure that is used for manipulating with databases by the majority of database-oriented software. This structure, including data contained in it, can be easily described using XML language (cf. below). Final files, after compressing them by some of the available compression algorithms, are very small compared to the amount and complexity of the original data.

An LGX file contains GZipped XML data: so called XML Schema Definition (XSD), i.e., database scheme, and XML description of the actual data entered by user.

#### LGA (LMPS for Windows Gzipped XML Database / Autosave)

This format is identical to LGX regarding the encoding/decoding method. The only difference is the file extension.

#### XML (Extensible Markup Language)

XML is a free and open standard for data storage. Its specification is freely available, for instance on the website of World Wide Web Consortium (http://www.w3.org/XML/). It is purely a text format and thus can be read regardless of the application used. It also is quite universal since it allows defining custom tags etc. This ensures possibility of describing virtually any data.

XML base can be opened if the database structure in the XSD scheme reflects the required scheme and if the restrictions on data are satisfied (e.g., restriction on the maximum length of identification strings is 50 characters). The same also concerns import from an XML file.

#### TXT (Text / LMPS 6.0)

Import from a TXT file is possible if the data contained in the file reflects the specification of export format of LMPS v.6.0. For further details refer to the Reference Guide to LMPS 6.0 (Referenční příručka LMPS 6.0, odstavec Báze / Import-Export / Export ASCII.).

### Saving

Bases can be saved to LGX files and exported to XML or TXT files. In case of a TXT file, there are two options regarding the decimal separator (dot or the default decimal separator according to operating system settings).

Graphs can be saved to PNG files (Portable Network Graphics, lossless compression), JPEG files (Joint Photographic Experts Group, lossy compression) or BMP files (Bitmap, lossless compression but its efficiency is small).

Query result evaluation protocols are saved as HTML files (Hypertext Markup Language). Graph present in the protocol is saved as a PNG file.