How to Create a Custom XML Conversion Definition

To create a custom XML conversion definition (.conv file):
1. Select File > New > Custom XML Conversion from the Stylus Studio menu.

The New Custom XML Conversion Definition dialog box appears.

Figure 183. New Custom XML Conversion Definition Dialog Box

2. Click the browse button ( ) and select the file you want to use to configure the custom XML conversion definition settings.

The Open dialog box appears. By default, the Files of Type field filter is set to display .txt, .edi, .csv, .tab, .log, and .bin files.

Tip

 

The file you select should be representative of other files of this type that you wish to convert to XML using the custom XML conversion definition you are creating.

3. Click the Open button.

Stylus Studio displays the file URL in the first field of the New Custom XML Conversion Definition dialog box.

4. Optionally, change the default file encoding and layout settings.
5. Click OK.

Stylus Studio displays the file you selected in the Custom XML Conversions Editor.

6. Examine the file and its properties as it was read into the Custom XML Conversions Editor by Stylus Studio.
7. Modify the file layout, its regions, and its fields as needed. See Working with Regions and Working with Fields if you need help with this step.
8. Modify the properties that govern XML output as needed. See Controlling XML Output if you need help with this step.
9. Click the Preview Results button ( ).

Stylus Studio displays the Save As dialog box.

10. Enter a name for the custom XML conversion definition and click Save.
11. If the results are not what you expect, return to step 7 and to step 8. You might also considering revisiting the input file, making fundamental changes there, and then reloading it.

Visual Data Integration Using Stylus Studio XML Pipeline

XML Pipeline is a visual data integration tool for designing, editing, debugging and deploying XML applications. This tutorial covers building a data integration application that aggregates CSV and EDI data and publishes a report to HTML and PDF.

EDIFACT Sample Converted to XML

A sample EDIFACT document before and after conversion to XML, showing markup and full automatically-generated internal documentation.

Writing Custom XML Adapters

There are cases where the input format is too complicated for Convert to XML, or both reading and writing of the file format is needed. This section will take you through the process of writing a medium-sized adapter in Java.

Building DataDirect XML Converter Applications with Stylus Studio

DataDirect XML Converters are Java and .NET components that enable access to any data (flat files, EDI) from your application code. Learn how to deploy XML applications today.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member