Saving an XML File in Another Format

Most DataDirect XML Converters are bi-directional - you can use them to convert native file formats to XML, and vice versa. (Custom XML conversions you define using the Stylus Studio Custom XML Conversion Definition Editor convert proprietary files to XML only.) 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:

l 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).
l Use a Document Wizard to create an XML Schema from an EDI message type (ATIS, Cargo-IMP, EANCOM, EDIFACT, Edig@s, HIPAA, HL7, NCPDP, PADIS, TRADACOMS, or X12, for example), 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.
 
Free Stylus Studio XML Training: