Convert to XML Editor

 

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

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

The Convert to XML Editor consists of a grid display that allows you to see how Stylus Studio has interpreted the file on which you are basing the converter. The Properties window allows you to review and edit properties that affect how the converter creates XML output from the file you open it with.

Buttons

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

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

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

Toggle Navigational Properties - By default, properties in the Properties window that help you move the focus in the document grid are hidden. This button lets you show/hide them.

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 grid.

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

Align Fields - In line-oriented regions, aligns fields in the document grid 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 grid.

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

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

The Convert to XML Editor

Creating a Convert to XML Converter

Chapter 3Converting Non-XML Files to XML

Using Relational Data in XML Applications

"Using Relational Data in XML Applications" By Dr. Michael Kay covers an overview of several common use cases and provides insight into the benefits and drawbacks of using the approaches available today including XQuery and SQL/XML.

The Java Architecture for XML Binding (JAXB)

In this JAXB tutorial, we'll show you how easy it is to generate JAXB bindings!

Validate XML Using XSD

You can validate XML documents against any data model defined using W3C XSD, using any major XSD Validator, including MSXML 3.0, MSXML 4.0, MSXML 6.0, Xerces-J, Xerces-C, Microsoft System.XML (1.0 and 2.0), XSV, the Saxonica XSD Validator and others.

Computing XML Differences in Stylus Studio

See for yourself just how easy it is to visually compare different XML files or folders using Stylus Studio's powerful new XML Differencing Utility. Quickly and easily analyze and merge changes made to different XML documents!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member