Home > Online Product Documentation > Table of Contents > Using Converters in Stylus Studio
You can use converters to open any file as XML anywhere in Stylus Studio. For example, you might want to use a text file (
.txt) as the source document for XQuery Mapper. When you open a file using a converter, the adapter engine converts that file to XML on-the-fly, using the settings defined in the converter you select.
You can also use the Stylus Studio File System Java API to invoke an adapter programmatically to convert any file using the converter you specify. See Invoking an Adapter Programmatically for more information on this topic.
In addition to the converters you create using the Convert to XML module (
.conv files), Stylus Studio comes bundled with numerous predefined converters to assist you in converting files to XML documents. They can be used to convert many common file formats, such as CSV, dBase, RTF, and Windows
.ini files.
The process for using user-defined and built-in converters is essentially the same.
Use the following procedure to open a file using a converter in Stylus Studio.
Stylus Studio displays the Select XML Converter dialog box.
If you are using a built-in converter, select the converter you want to use and go to step 5.
The file is converted to XML and appears in the editor from which you displayed the Open dialog box in step 1.