IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

XQuery and the AND operator

  • 1.  XQuery and the AND operator

    Posted Wed September 05, 2001 10:12 PM

    I have the following query:
    http://localhost/tamino/xml/sailing?_xql=cruiseCatalog/cruise[route/date[1]>=20010701 and route/date[last()]<=20010731]/route
    I should get all the cruise data that starts and ends in the month of July, but for some reason the “and” operator does not seem to take effect.
    I use 2.3.1.1 and the date element is an integer with stardard search


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: XQuery and the AND operator

    Posted Thu September 06, 2001 01:33 AM

    It is strange because I use the same version but receive accurate results for queries like that.

    Are you sure that you were not mistaken in your query? If you have many routes for a cruise and one date element for each route, the query should be different a little:

    http://localhost/tamino/xml/sailing?_xql=cruiseCatalog/cruise[route[1]/date>=20010701 and route[last()]/date<=20010731]/route

    It is just a guess because I do not know your schema.


    #API-Management
    #Tamino
    #webMethods