GeeCON Prague 2014*
The moose likes Java in General and the fly likes How can I fire Xquery in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How can I fire Xquery in java?" Watch "How can I fire Xquery in java?" New topic
Author

How can I fire Xquery in java?

arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
I want to fire query in netbeans......
Please help me for this...
Like an example --- I have a xml file "student.xml" and i want to retrieve student name..
So how I do in netbeans ..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What do you mean, "fire xquery"?

What does this have to do with NetBeans? Are you just asking how to use an XML library?
arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
I want to know that how can we use xqj.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
I hope you have not been doing nothing about the question while waiting for an answer here.

A google search for "java xquery" turns up plenty of toolkits, examples and tutorials.

Bill
arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
I search in google and get one code in xqj....

Code is---

In this I am getting error..
package com.ddtek.xquery3 does not exist

From where I can get this package ???
Please help me to get out of this problem..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42057
    
  64
If you're faced with an unknown package of "com.ddtek..." then the first stop -assuming that a web search returns nothing- would be ddtek.com; that's how such package names usually work.
JavaRanch's XmlFaq also talks about XQJ.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

com.ddtek.xquery3

If you check the first hit that's the Javadoc page. Strip off everything but the domain name (leaving http://www.xquery.com/) and open that page. It shouldn't be too hard to find it then. It's not free though.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
from where I can get XQJ classes??

like these classes--

com.ddtek.xquery3.XQConnection;
com.ddtek.xquery3.XQException;
com.ddtek.xquery3.XQExpression;
com.ddtek.xquery3.XQItemType;
com.ddtek.xquery3.XQSequence;
com.ddtek.xquery3.xqj.DDXQDataSource;
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42057
    
  64
Did you actually read the replies from Rob and myself?
arun singhal
Ranch Hand

Joined: Oct 25, 2009
Posts: 41
yes, i have read both replies..
but when I click on link http://www.google.com/search?q=com.ddtek.xquery3 then i find that there is explanation of all these classes about com.ddtek.xquery3.XQConnection;
com.ddtek.xquery3.XQException;
com.ddtek.xquery3.XQExpression;

But I don't know how to use these classes??
And How would I import these class in program??
Actually this is my first XQJ code..So I am facing such problem..
Please give solution to get out of this problem...
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14195
    
  20

Try looking a little harder... http://www.xquery.com/xquery/

Looks like this is a commercial product.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And documentation is here:

http://www.xquery.com/docs/
 
GeeCON Prague 2014
 
subject: How can I fire Xquery in java?