Example: Converting a Conforming EDI File

This section describes how to convert an EDI file to XML using the Stylus Studio EDI to XML module. It uses the 831.x12 EDI file, which is installed in the \EDItoXML\EDI files folder where you installed Stylus Studio. This file conforms to the X12 EDI standard, and contains no errors.

To convert 831.x12 to XML:
1. Select File > New > EDI to XML Conversion from the Stylus Studio menu.
The New EDI to XML Conversion dialog box appears.
2. In the Select a sample EDI document field, type the URI for the 831.x12 EDI file.
Alternative: Use the more button ( ) to locate 831.x12.
When you select the document, X12 is displayed in the Dialect field and 004030 is displayed in the Version field in the Select the dialect and version you need to customize group box.
3. Click OK.
The EDI to XML editor appears. The 831.x12 EDI file you selected in Step 2 is displayed in the EDI document pane. The message in the status bar (No errors found) indicates that the 831.x12 EDI file has no errors.
The EDI Structure pane displays information for X12 version 004030 from the DataDirect XML Converter repository. Stylus Studio uses this information to parse and validate the source EDI document associated with this EDI to XML conversion.
4. To convert the 831.x12 EDI file to XML, click the Preview Result button ( ).
The Save As dialog box appears, requesting that you save your EDI to XML conversion as a SEF file.
5. Provide a name for the file and click the Save button.
Stylus Studio opens the Preview window and displays the XML that results from converting the 831.x12 EDI file.
 
Free Stylus Studio XML Training: