### Importing an XML File

An Extensible Markup Language file (XML) is a text file that has been encoded electronically to contain data structures. Many third party tools export measurement data as an XML file. The xml option allows you to import those data files into your database. PC-DMIS 2010 MR3 and later also allow you to export statistical data using the XMLSTATS command.

1. Once you have an xml file, on the Choose a data file screen of the wizard, choose the xml option.

2. Click Browse, and select the xml file.

3. Click Next. The Customize the data 1 screen appears:

4. If desired, mark these check boxes:

- Treat loops as transactions - This determines whether or not the software treats multiple measurement runs that occurred from a loop in the part program as separate transactions. In PC-DMIS when a feature is measured inside of a loop, its ID has a number in square brackets next to it indicating how many times that feature has been executed in that loop: CIR[0] the first time it's ran, CIR[1] for the second time, and so on. If you mark this check box, each loop is treated as a separate transactions, and the ID without the square brackets is listed inside each transaction. Clearing this check box does the opposite; it treats multiple measurements on the same feature inside the loop as individual features in a single transaction, and feature names retain the number in the square brackets.

- Import special trace fields - This imports special DataGauge+ trace fields contained in your XML data file into the database. If the trace fields fall into any of these available categories (Lot, Lot index, Gauge operator, Gauge ID), specify your specific trace names in the appropriate boxes beneath the check box. These are then imported into the database along with your data. This trace data can then be used inside of trace field queries. If you imported a Lot number (in Lot trace names) or Lot index (in Lot index trace names), those values also appear in the list of transactions.
  A - Lot number, B - Lot index

5. Click Finish to import the data.

6. The Performing Operation... screen shows details of the import process. Click Cancel to close the wizard. Once the dialog box closes, the imported data will be available for selection from within Datapage+.