Using Converters in Stylus Studio

Once you have created a Convert to XML converter ( .conv), you can use it to open any file (of the type you used to define it) 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 Convert to XML adapter engine converts that file to XML on-the-fly, using the settings defined in the converter you select.

To open a file using a Convert to XML converter (.conv file):
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 converter and select the file.
3. Check the Convert to XML using adapter check box and click the Open button.

Figure 157. Check Box to Open Files Using Converter

Stylus Studio displays the Select XML Converter dialog box.

Figure 158. Select XML Converter Dialog Box

4. Expand the Convert to XML Definitions tree and select the converter you want to use to convert the file you selected in step 2 to XML.

Figure 159. Selecting a Convert to XML Converter

5. Click OK.

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

 
Free Stylus Studio XML Training: