[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Cannot access DDXQDataSource for XQuery in java

Ivan Pedruzzi ivanpedruzzi at gmail.com
Wed Jul 28 12:30:52 PDT 2010


  Cannot access DDXQDataSource for XQuery in java
To be fair to my colleagues, the product's documentation and the massive
online tutorials we have published explain well what XQJ is and how to use
DataDirect XQuery.

http://web.datadirect.com/resources/dis/xqj-tutorial/index.html


True, DataDirect XQuery is  a commercial product,  an enterprise-class
implementation and an embeddable component. but that doesn't mean that it
cannot be easily used for querying plain XML.



Here is an interesting chapter on how to query large XML documents in
streaming mode.

http://media.datadirect.com/download/docs/ddxquery/allddxq/reference/improvingperformance2.html



Ivan





On Wed, Jul 28, 2010 at 4:14 AM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:

> Progress/DataDirect may have confused you with their marketing. They own
> the domain www.xquery.com, but they are just one of many vendors producing
> XQuery implementations. Their product is a rather sophisticated
> enterprise-class implementation, so it might not be your best choice for
> initial experiments with the language.
>
> XQJ is an interface - an API - not an XQuery implementation. The examples
> on the DataDirect site show you how to use XQJ with their product
> implementation. Class names beginning DDXQ are not part of XQJ itself, they
> are part of the DataDirect implementation. Other implementations of XQJ
> (such as Saxon) will have their own XQDataSource classes. The reason you are
> getting the failures is that you have downloaded the API definitions, but
> you also need an XQuery engine, which will supply the specific XQDataSource.
> You'll find a (long) list of XQuery implementations here:
>
> http://www.w3.org/XML/Query/#implementations
>
> It sounds as if you want a file-based implementation rather than a database
> engine, and since you want Java and XQJ support, the open-source version of
> Saxon will probably meet your needs. Information on using Saxon with XQJ is
> here:
>
> http://www.saxonica.com/documentation/using-xquery/api-query/xqj.html
>
> Saxon also has other APIs to handle other parts of your XML application,
> such as schema validation.
>
> Michael Kay
> Saxonica
>
>
> On 28/07/2010 03:12, Chathura K wrote:
>
> Dear List,
>
> I want to use XQuery with Java, to read some content from an XML file
> (particularly MusicXML file).
>
> I downloaded the XQuery API for java at the www.xquery.com site, and
> attached the xqjapi.jar file to the libraries in NetBeans. Then I imported
> *import javax.xml.xquery.*;*
>
> However to initially set up a connection using
> *XQDataSource xqjd = new DDXQDataSource();*
> I cannot access DDXQDataSource - it's not the javadoc either.
>
> And I tried the tutorials at www.xquery.com and even if I type
> *import com.ddtek.xquery3.xqj.DDXQDataSource;*
> as they have mentioned, it says the above package does not exist.
>
> Where might I have gone wrong?
> Greatly appreciate any insight, suggestions, ideas and any help.
>
> Many thanks in advance
> Best Regards
> ------------------------------
> CK
>
>
> http://x-query.com/mailman/listinfo/talk://x-query.com/mailman/listinfo/talk
>
>
>
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20100728/69db525e/attachment.htm


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.