DataDirect XML Converters™ Release 5.0 for .NET
QuickStart


Copyright (c) 2009 Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.


This QuickStart file contains information on getting started with DataDirect XML Converters. For information about:

Contents

This document contains the following sections:


Configuration

The installer automatically installs the DataDirect XML Converters assemblies to the Global Assembly Cache (GAC). This allows the XML Converters DLL file, XmlConverters.dll, to be detected when your application is run.

XML Converters applications can also be run if the XmlConverters.dll is in the same directory as the application .exe.


Sample XML Converters Application

This simple application converts an EDI file of the X12 dialect (myEdi.x12) to an XML file with the name myEdi.x12.xml.

using System;
using DDTek.XmlConverter;

namespace ConverterOne
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(args[0] + " --> " + args[1]);
            Converter toXML = new ConverterFactory().CreateConvertToXml("converter:EDI");
            toXML.Convert(new UriSource(args[0]), new UriResult(args[1])); 
        }
    }
}

To invoke this program, type the following:

ConverterOne myEdi.x12 myEdi.x12.xml

See demo.cs in the \examples directory for additional examples of DataDirect XML Converters applications.


end of DataDirect XML Converters Release 5.0 — QuickStart.htm