qexo-general
[Top][All Lists]
Advanced

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

Re: [Qexo-general] Problem with java implementation


From: Per Bothner
Subject: Re: [Qexo-general] Problem with java implementation
Date: Thu, 02 Jan 2003 07:22:32 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

address@hidden wrote:
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());
        }

   }
}

If you haven't done so, read:
http://www.gnu.org/software/qexo/Running.html

(This is new, and mentioned a few things I haven't checked into CVS
yet, which is why it isn't linked to from the Qexo home page.)
--
        --Per Bothner
address@hidden   http://www.bothner.com/per/




reply via email to

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