Home >Online Product Documentation >Table of Contents >Saving an XML File in Another Format
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 (EANCOM, EDIFACT, Edig@s, IATA, HL7, or X12), 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.