How to Open a File Using an Adapter

You can use either of the following procedures to open a file using an adapter in Stylus Studio.

Tip

 

Using the File Explorer can be easier - you can convert files using simple drag-and-drop.

Using the File Explorer

Note

 

Predefined adapters are displayed in the Built-in Adapters folder in the File Explorer.

To open a file using an adapter from the File Explorer:
1. Navigate to the directory that contains the adapter you want to use to open the file.
2. Navigate to the directory that contains the file you want to convert.
3. Drag the file ( step 2) and drop it on the adapter ( step 3).

The file is converted to XML and opened as a new document.

Using the Open Dialog Box

To open a file using an adapter from the Open dialog box:
1. Display the Open dialog box (select File > Open from the Stylus Studio menu, for example).
2. Navigate to the directory that contains the file you want to open using the adapter and select the file.
3. Check the Convert to XML using adapter check box and click the Open button.

Figure 197. Check Box to Open Files Using Adapter

Stylus Studio displays the Select XML Converter dialog box.

Figure 198. Select XML Converter Dialog Box

4. If you are using a user-defined adapter, expand the Convert to XML Definitions tree and select the adapter you want to use to convert the file you selected in step 2 to XML and go to step 6.

Figure 199. Selecting a User-Defined Converter

If you are using a built-in adapter, select the adapter you want to use and go to step 5.

5. Specify the values you want to use for translation purposes. Many fields have a drop-down list that displays valid values, like the Line Separator property for the Comma-Separated Values converter shown here:

Figure 200. Built-In Converters Display Valid Properties

6. Click OK.

The file is converted to XML and appears in the editor from which you displayed the Open dialog box in step 1.

Tip

 

You can use the same basic procedure, from the Save As dialog box, to save a file using an adapter.

 
Free Stylus Studio XML Training: