Creating a Convert to XML Converter

This procedure describes how to create and save a Convert to XML converter ( .conv). All converters are saved to the XML Converters file system by default.

Specifying File Settings

When you create a new converter, Stylus Studio prompts you to specify the file you want to convert. It also allows you to specify the file's

  • Encoding (Windows-1252 or ANSI, for example)
  • Layout (line-oriented or fixed-width, for example)

Unless you are certain of the file's encoding and layout, consider leaving the default settings as they are - Stylus Studio will determine encoding and layout properties when it reads the file.

How to Create a Converter

To create a Convert to XML converter (.conv file):
1. Select File > New > Convert to XML from the Stylus Studio menu.

The New Converter dialog box appears.

Figure 181. New Converter Dialog Box

2. Click the browse button ( ) and select the file you want to use to configure the conversion 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.

3. Click the Open button.

Stylus Studio displays the file URL in the first field of the New Converter dialog box.

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

Stylus Studio displays the file you selected in the Convert to XML Editor.

6. Examine the file and its properties as it was read into the Convert to XML 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 converter 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 reloading it.

Using DTD in Java Applications

Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.

Support for DataDirect SequeLink

Learn about Stylus Studio's support for DataDirect SequeLink, an end-to-end database middleware solution that provides a universal thin client for ODBC, JDBC, ADO or .NET, providing flexibility for both client- and server-based deployments.

Learn XSLT and XQuery Profiling

Stylus Studio's Profiler can help you evaluate the performance of your XQuery and XSLT. Automatically generated, customizable, easy-to-read HTML reports provide insight into performance bottlenecks.

XQuery Editor

Stylus Studio's XQuery development tools are a tremendous help in building and testing XML applications requiring a standards-based approach to querying, integrating and transforming data from various distributed data sources.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.