Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] java and xpath

From: Liam Quin <liam@--.--->
To: c b <cindyloo_home@-----.--->
Date: 5/2/2007 1:01:00 AM
On Tue, May 01, 2007 at 08:27:09AM -0700, c b wrote:
> so I shouldn't be utilizing the double-forward slash "//" but the
> single forward-slash since "//" goes to the root node and then gets
> all descendants?  I believe early-on I did do that but got a bit lost
> b/c I hit the default namespace prefix problem and just tried to make
> it work...

You're not alone, it's a common mistake.

>   therefore, I should be doing "/sdp:service/sdp:trip", correct?  Even
>   so, though, should I be using a different library?  XPathAPI vs  JAX
>   vs.. ?  can you make a recommendation

I'm not really able to make a recommendation, mostly because I don't
know enough about your application.

>   ... I am not sure how I would go about using XQuery from within Java
>   though...  it seems that is a better fit for jsp/html pages, etc.
>   why do you think that would be better for my purposes?
There are certainly some XQuery implementations that work with
(or as) servlets.

I don't know enough about what you're trying to do to be certain
what would be best for you.  I can only suggest that you consider
using XQuery.  Certainly on my own personal Web site, the
Search interface at http://www.fromoldbooks.org/Search/
was built with XQuery, and took only a couple of hours to have
something good enough to try out on the production server, and
less than a day to have fairly robust production code.  Most
of that time was spent getting a working cache.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent