Saving an XML File in Another Format

DataDirect XML Converters are bi-directional - you can use them to convert native file formats to XML, and vice versa. In order to save an XML file in another format, however, the XML file you are saving needs to have an XML Schema consistent with that expected by the XML Converters. There are a number of ways to achieve this in Stylus Studio:

  • Save back a previously converted file. Imagine using the CSV XML Converters to convert bikes.txt to bikes.xml. You could modify the data in bikes.xml and save it back using the CSV XML Converters. Stylus Studio could save the XML file as CSV as long as you made no changes to the document structure (adding no new elements or attributes, for example).
  • Use a Document Wizard to create an XML Schema from an EDI message type (EDIFACT, IATA, EANCOM, X12, or HL7), and use that XML Schema as the target document in an XQuery or XSLT mapping. The XML document resulting from the XQuery or XSLT transformation based on that XML Schema would conform to the XML Schema expected by the EDI XML Converters.

For more information on Document Wizards, see Using Document Wizards to Create XML. For more information about working with EDI files as XML, see Working with EDI Conversions.

EDIFACT Standards Available Across All Versions

The complete EDIFACT Standards Grid, listing all EDIFACT versions across the top, and the corresponding messages down the left side.

XML Schema Editor

Stylus Studio's XML Schema Editor lets you easily develop advanced data models expressed in W3C XML Schema. Its synchronized split-pane interface shows both a visual XML Schema Diagram and the underlying code, and you can edit in either one.

Using Stylus Studio's Database-to-XML Editor to Query and Update Relational Databases using SQL/XML

Watch and learn how easy it is to define relational-to-XML mappings for getting XML out of relational databases and updating databases from XML using industry-standard SQL/XML extensions and Stylus Studio's DB-to-XML data-source editor.

EDI to XML Mapping in Stylus Studio

Learn how to use Stylus Studio's EDI to XML mapping tools in Convert-to-XML, including loading an EDI file, inspecting application control codes, customizing XML output and other advanced EDI to XML mapping features.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member