Translating the XML document on the client

Invoked from the client, the main( ) method of the Order2SqlClient class creates a table named orders_received with columns suitable for order data. It then extracts the elements of the XML order contained in the file Order.xml into rows and columns of orders received. It performs these actions with calls to static method OrderXml.createOrderTable( ) and instance method order2Sql( ).

import util.*;
import xml.order.*;
import java.io.*;
import java.sql.*;
import java.util.*;
public class Order2SqlClient {
 	public static void main (String args[]) {
 		try{ 
 			String xmlOrder =
 				FileUtil.file2String("order.xml");
 			OrderXml.createOrderTable("orders_received",
 				"antibes:4000?user=sa");
 			xmlOrder.order2Sql("orders_received",
 				"antibes:4000?user=sa");
 		} catch (Exception e) {
 		System.out.println("Exception:");
 		e.printStackTrace();
 		}
 	}
 }