DataDirect XML Converters are stand-alone Microsoft .NET and Java components that provide bi-directional, programmatic access to any non-XML file including EDI, comma delimited files, tab delimited files, and other legacy and flat file formats. In this example, we'll demonstrate how to use DataDirect XML Converters for .NET in a C# project, both as a stand alone application, and in conjunction with XSLT.
The Camtasia Studio video content presented here requires JavaScript to be enabled and the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.
Building XML Converter Applications Using Microsoft Visual Studio .NET covers the following topics:
Adding the XML Converters DLL file as a reference in a Visual Studio .NET Project
Inserting the DDTek.XMLConverter namespace to your C# program file
Using a ConverterFactory to create ConvertToXML and ConvertFromXML objects which perform data conversions to and from XML
Writing the code to perform an EDIFACT to XML conversion
Using the Visual Studio help system to get information including complete API documentation and code completion
Specifying the type and direction of the conversion you'd like to implement
Using a URI to specify the path to a resource such as an EDI or CSV file
Browsing an EDI file in Microsoft Visual Studio .NET
Specifying an output file or streaming an output to another object
Running an EDIFACT to XML conversion and browsing the results – a well formed and valid XML file, properly formatted and commented
Writing another application that converts from XML to EDIFACT
Streaming the results of a conversion to another conversion in your application
Taking the output of an EDI to XML conversion and streaming the results to an XSLT stylesheet application
Using the XmlWriter to store the results to an XML file
Modifying the .NET application to convert a CSV file to XML and stream the results to an XSL application
Specifying indentation options for formatting the generated XML output documents