CSV to XML

Use the CSV to XML document wizard to convert a Comma Separated Value (CSV) text file to an XML document. To display the Convert CSV to XML dialog box, select File > Document Wizards in the Stylus Studio menu bar, and double-click CSV to XML.

Fields

Input URL

Specifies the absolute path name of the CSV file you want to import.

Input Encoding

Identifies the encoding of the source CSV file. The default for your platform is typically UTF-8 or UTF-16. If you do not specify a value, the wizard uses the default for your platform.

Root element name

Specifies the name of the root element in the resulting XML document. The default is document.

Row element name

Specifies the name of the row elements in the resulting XML document. The default is row. The row elements are the children of the root element.

Column names are

The columns are the children of the row elements.

Generated indicates that the wizard should insert the default column names, which are value1, value2, value3, and so on.

In file indicates that the first line in the CSV file contains the values for the column names.

Specified here indicates that you are typing the names of the columns in the text area.

Map value to

Child element indicates that the wizard should map the column values to child elements of the row elements.

Attribute indicates that the wizard should map the column values to attributes of the row elements.

Delimiter

Indicates the special character that separates the values in the CSV file. The default is a comma ( ,). Select the delimiter you want, or select Other and type the delimiter you want.

Quote

Indicates the special character that acts as a quotation mark. The default is a double quote ( "). Select the special character you want, or select Other and type the character you want.

Make Default

Stores the current settings in the Windows registry. Stylus Studio uses these values as the initial settings the next time the dialog box is opened.

Reset Default

Resets the default values of the settings to the values they had when Stylus Studio was installed:

    • document is the root element node
    • row is the row element name
    • Column names are generated as value1, value2, value3, and so on
    • Column values are mapped to children of row elements
    • Comma ( ,) is the delimiter character
    • Double quote ( ") is the quote character
    • UTF-8 is the default encoding of the file being imported
Buttons

Move Up moves the selected column to be before its preceding sibling.

Move Down moves the selected column to be after its following sibling.

Delete the selected column.

For More Information

Converting Text Files to XML Documents

Chapter 3Converting Non-XML Files to XML

XML Whitepaper

Learn how XML can help you meet your business objectives by reading free XML Whitepapers covering XML, XML Schema, XQuery, SQL/XML, and FIXML technolgies employed in real world case studies.

Learn SQL/XML

Learn how to access and update relational databases using industry-standard SQL/XML technologies along with Stylus Studio's DB-to-XML editor and File Explorer technologies.

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.

An Introduction to XQuery Development

An Introduction to XQuery demonstrates how easy it is to use Stylus Studio's many tools for editing, testing and deploying XQuery applications. Learn how to write your first XQuery application in just minutes by watching this online tutorial.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.