Convert to XML Editor

 

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

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

Varying Record Layout to XML

Not every row in a text file has to have the same layout. Convert to XML has advanced pattern-recognition tools to route the data to where it belongs.

SQL Server Tools

Integrated SQL Server Tools in Stylus Studio enable you to access relational data stored in SQL Server 2000 or SQL Server 2005 as XML using XQuery, SQL/XML or ADO - learn how to export relational data as XML today!

Single Source Publishing

Single source publishing is the ability to use one source of information for generating multiple types of output. Stylus Studio XML Publishing enables Single Source Publishing - publish PDF or HTML documents from Relational, XML or Legacy files.

XML Editing Views

Stylus Studio includes three synchronized XML editing views: Text View, Tree View, and Grid View, allowing you to work with and edit XML documents in whatever way suits you best.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member