This help file applies to an out-of-date version of MainBoss.
The most recent version of MainBoss is MainBoss 4.2.4.
For the latest version of this help file can be found here.

< Previous section  |  Table of Contents  |  Index  |  Next section >

For importing and exporting data, MainBoss uses a format called XML. This is a widely-used format that can be adapted for use with any kind of data.

XML data has two components: the actual data itself, and a schema that tells how to interpret the data. For example, the schema for an item price quote record would say that some fields are text strings (e.g. the name of the item), some fields are integers (e.g. the quantity of items covered by the quote), some fields are dates (e.g. the date that the quote was given), and some fields are numbers with decimal points (e.g. the unit price). The schema is used for error-checking—if a field is supposed to be a number but isn't, something has gone wrong.

In order to be usable for either import or export, XML needs both the data and the schema. These can be in separate files, or both combined in a single file. When a single file contains both the data and the schema, the schema is said to be embedded with the data.

When should you embed the schema into the data, and when you should you make two separate files? The answer depends on the software that you'll use to read the exported data. Some software packages expect an embedded schema; other packages expect two separate files; and some packages accept either format. Check the documentation of the package in question to see which format is best.

Examining XML Data: XML data can be read into Microsoft Excel and most other spreadsheet programs. This is usually the easiest way to see what XML data actually contains. For more information, see Viewing Exported Data in Microsoft Excel.

Note: MainBoss can export data from a report as well as from a table. When you export data from a report, you get whatever data appeared in the report; this may include calculated values as well as data that is actually stored in the MainBoss database. For example, if you export data from the Unit Replacement Forecast, you will get any projected replacement costs that MainBoss calculates for the units. Furthermore, the exported data will be sorted and selected according to any criteria and filters you specify when preparing the report.

On the other hand, when you export data from a table, you get the complete contents of the table in the order that records appear in the table.

< Previous section  |  Table of Contents  |  Index  |  Next section >