qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] Problem with java implementation


From: jvinel
Subject: [Qexo-general] Problem with java implementation
Date: Thu, 26 Dec 2002 15:45:14 +0100 (CET)

Hello,

I'm trying to use qexo in a java software. To try Qexo i use the following
class :

import gnu.xquery.lang.*;

public class Tester {
  public static void main(String args[])
  {
    try {
        XQuery xquery=new XQuery();
            Object result= xquery.eval("for $x in (1,2,3) return
<result>{$x}</result>");
            System.out.println("ok " + result.toString());
        }
        catch(Throwable e) {
                System.out.println("Plop ! : " + e.getMessage());
        }

   }
}

But it seems that there is an error (catch block) with the line :
System.out.println("ok " + result.toString()).
I don't understand why because it works (in scheme) with :
Scheme scm = new Scheme();
Object x = scm.eval("(+ 3 2)");
System.out.println(x);

Can somebody help me ?

Thanks,

Julien








reply via email to

[Prev in Thread] Current Thread [Next in Thread]