Convert to XML Editor

 

The Convert to XML Editor is available only in Stylus Studio XML Enterprise Suite.

You use the Convert to XML Editor to define adapters you use to convert flat files ( .txt, binary, and EDI, for example) to XML documents. You can use adapters to open flat files as XML documents anywhere in Stylus Studio.

The Convert to XML Editor consists of a document pane that allows you to see how Stylus Studio has interpreted the file on which you are basing the adapter, and a schema pane to help you define the XML document that will be output when the file is converted. The Properties window allows you to review and edit properties that affect how the adapter creates XML output from the file you open it with.

Buttons

Preview Result - Displays XML output based on current adapter settings.

Open File - Allows you to open a new file on which you wish to base an adapter.

Reload Input File - Allows you to reload the current file in the Convert to XML Editor.

Toggle Informational Properties - Displays information about the physical characteristics (size, number of rows, and so on) of the file and the current region, row, and field.

Display Match Symbol - Displays symbols at the front of each row to indicate whether the row matches the pattern associated with the currently selected row, or with the match pattern defined for some other row.

Highlight Matching Rows - Highlights the rows that match the regular expression you enter in the Match Pattern property; this field acts as a filter - rows that match the pattern you enter are not output as XML.

Toggle Control Characters - Toggles the display of control characters in the document pane.

Toggle Ruler - Toggles the display of the ruler in the document pane.

Align Fields - In line-oriented regions, aligns fields in the document pane by removing spaces Stylus Studio adds for readability. Affects display only.

Toggle Horizontal Grid Lines - Toggles the display of horizontal grid lines in the document pane.

Toggle Vertical Grid Lines - Toggles the display of vertical grid lines in the document pane.

Convert to Fixed-Width Region - Converts a line-oriented region to a fixed-width region.

Convert to Line-Oriented Region - Converts a fixed-width region to a line-oriented region.

Begin Field In This Column - In a fixed-width region, allows you define the start of a new field.

Start New Line-Oriented Region Here - Defines a new line-oriented region starting at the cursor's present location.

Start New Fixed-Width Region Here - Defines a new fixed-width region starting at the cursor's present location.

Join With Previous Region - Joins the current region with the previous region in the file.

Join With Next Region - Joins the current region with the next region in the file.

For More Information

Document Pane

Schema Pane

Properties Window

The Convert to XML Editor

Creating an Adapter

Chapter 3Converting Non-XML Files to XML

 
Free Stylus Studio XML Training:
W3C Member