NAACCR XML Utility


Table of Contents

Introduction
Supported NAACCR versions
Supported compression algorithms
Converting a Flat file to an XML file
Converting an XML file to Flat file
Re-creating an XML file using different options
Validating a NAACCR XML file
Viewing the standard NAACCR dictionaries
Creating a user-defined dictionary
Attribution

Introduction

This tool can be used to transform a NAACCR flat-file (fixed column) into the corresponding NAACCR XML format and vice-versa. It can also be used to validate a given NAACCR XML file.

This tool is not a data conversion tool; it simply translates one format into another.

Supported NAACCR versions

   (Back to TOC)
The supported NAACCR versions and record types are listed on the individual pages of the tool.

Supported compression algorithms

   (Back to TOC)
Data files can be compressed using the GZip (.gz) compression.

Several software can be found online to compress/uncompress a given file. For example, 7-Zip is a free standalone program that will handle the two compression methods.

The utility tool allows you to select the compression as part of the conversion options.
By default, the compression is set to the same one as the source file, but that can be changed by using the compression drop-down.

Converting a Flat file to an XML file

   (Back to TOC)
Follow the following steps to convert a flat file into the corresponding XML format:
  1. In the left navigation bar, select the Flat to XML button.
  2. Use the Browse button and select the source data file you would like to convert.
  3. Review the target file and the compression drop-down; change the values if the default ones are not what you need.
  4. Review the processing options.
  5. If you need to, provide a user-defined dictionary.
  6. Click the Process Source File button.
  7. The file will first be analyzed, and the processing will start automatically if no issues are detected during the analysis.
  8. The interface will show the created file, its size and the processing time; it might also show some warnings gathered during the processing.

Converting an XML file to Flat file

   (Back to TOC)
<
Follow the following steps to convert an XML file into the corresponding flat-file format:
  1. In the left navigation bar, select the XML to Flat button.
  2. Use the Browse button and select the source data file you would like to convert.
  3. Review the target file and the compression drop-down; change the values if the default ones are not what you need.
  4. Review the processing options.
  5. If you need to, provide a user-defined dictionary.
  6. Click the Process Source File button.
  7. The file will first be analyzed, and the processing will start automatically if no issues are detected during the analysis.
  8. The interface will show the created file, its size and the processing time; it might also show some warnings gathered during the processing.

Re-creating an XML file using different options

   (Back to TOC)
Follow the following steps to re-create an XML file using specific options (for example to add the NAACCR Item Numbers):
  1. In the left navigation bar, select the XML to XML button.
  2. Use the Browse button and select the source data file you would like to convert.
  3. Review the target file and the compression drop-down; change the values if the default ones are not what you need.
  4. Review the processing options.
  5. If you need to, provide a user-defined dictionary.
  6. Click the Process Source File button.
  7. The file will first be analyzed, and the processing will start automatically if no issues are detected during the analysis.
  8. The interface will show the created file, its size and the processing time; it might also show some warnings gathered during the processing.

Validating a NAACCR XML file

   (Back to TOC)
Follow the following steps to validate a given NAACCR XML file:
  1. In the left navigation bar, select the XML Validation button.
  2. Use the Browse button and select the source data file you would like to validate.
  3. Review the target file and the compression drop-down; change the values if the default ones are not what you need.
  4. Review the processing options.
  5. If you need to, provide a user-defined dictionary.
  6. Click the Process Source File button.
  7. The file will first be analyzed, and the processing will start automatically if no issues are detected during the analysis.
  8. The interface will show the created file, its size and the processing time; it might also show some warnings gathered during the processing.

Viewing the standard NAACCR dictionaries

   (Back to TOC)
Follow the following steps to view one of the standard NAACCR dictionaries:
  1. In the left navigation bar, select the Standard Dictionaries button.
  2. Select one of the dictionaries in the drop-down.
You can also use the Extract to CSV... button to create a CSV file containing all the data items of dictionary currently selected.

Creating a user-defined dictionary

   (Back to TOC)
To create your own user-defined dictionary, select the Dictionary Editor button in the left navigation bar.

The toolbar on the top of the page allows the following actions: When editing your dictionary, you may modify the following fields: For more information about the NAACCR XML standard and the meaning of those attributes, check out the implementation guide on the NAACCR website.

Attribution

   (Back to TOC)
This software uses binary code from the following projects: