I am using ASE 12.5 eval copy in WINNT 4.0 I have installed java and when i am trying to workout XML in sample given in sybase java manual i am getting the following error
E:\ase\java\xml>javac Sql2OrderClient.java
Sql2OrderClient.java:11: Method sql2order() not found in class jcs.xml.order.Ord
erXml.
FileUtil.string2File("Order-sql2Order.xml",order.sql2order());
^
1 error
the code in Sql2OrderClient.java file is as follows
import java.io.*;
import java.util.*;
import jcs.xml.order.*;
import jcs.util.*;
public class Sql2OrderClient {
public static void main (String args[]) {
try{
OrderXml order =
new OrderXml("990704", "123","KAMAL:5000?user=sa");
FileUtil.string2File("Order-sql2Order.xml",order.getXmlText());
} catch (Exception e) {
System.out.println("Exception:");
e.printStackTrace();
}
}
}
can anybody help me to solve the problem pls also help with some sample code to transfer data from sql to xml and viceversa.or a reference to a web site of sample will be helpful
Thanks
Kamalakar Vangara