0% found this document useful (0 votes)
3 views2 pages

Quickstart

Uploaded by

zaytsevas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Quickstart

Uploaded by

zaytsevas81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DataDirect XML Converters® for Java™ Release 6.

2
Quick Start
Copyright (c) 2013 Progress Software Corporation and/or its subsidiaries or
affilates. All rights reserved.

This Quick Start contains information on getting started with


DataDirect XML Converters. For information about:

■ What’s new in the current release, refer to the README

■ DataDirect XML Converters features, refer to the DataDirect


XML Converters for Java User's Guide and Reference

■ Product requirements, refer to the DataDirect XML


Converters for Java Installation Guide

■ The example application, demo.java, which is installed in the


XML Converters /examples directory, see the comments in the
demo.java file.

Contents
This document contains the following sections:

■ “Setting the CLASSPATH”


■ “Sample XML Converters Application”

Setting the CLASSPATH


The DataDirect XML Converters jar file, XMLConverters.jar, must
be included in your CLASSPATH. The CLASSPATH is the search
string your Java Virtual Machine (JVM) uses to locate DataDirect
XML Converters on your computer. If the DataDirect XML
Converters jar file is not included in your CLASSPATH, you receive
2 DataDirect XML Converters® for Java™ Release 6.2 Quick Start

a ClassNotFoundException exception when trying to use


DataDirect XML Converters.

Windows Example
set CLASSPATH=.;c:\ddxmlconverters\lib\XMLConverters.jar

UNIX/Linux Example
CLASSPATH=.:/home/user1/ddxmlconverters/lib/XMLConverters.jar

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.

import com.ddtek.xmlconverter.*;
import javax.xml.transform.stream.*;

public class ConverterOne {


public static void main(String args[]) throws Throwable {

System.out.println(args[0] + " --> " + args[1]);


Converter toXML = new ConverterFactory().newConvertToXML("converter:EDI");
toXML.convert(new StreamSource(args[0]), new StreamResult(args[1]));
}
}

To invoke this program, type the following command:

javac ConverterOne.java
java ConverterOne myEdi.x12 myEdi.x12.xml

See demo.java in the \examples directory for additional examples


of DataDirect XML Converters applications.

End of Quick Start

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy