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.

 View Only
  • 1.  Date Comparisons?

    Posted Sat March 13, 2004 07:19 AM

    Hi

    I’m using Tamino 4.1.4.1 on a Windows 2000 server.

    I’m trying to do a date comparison.

    The xml’s use the standard format for dates (the tsd specifies them as type=“xs:date”):

    2004-02-25
    2003-08-25
    2005-03-03


    The xquery looks like this:

    for $x in input()/thing
    let $id := string($x/@id)
    where $x/a > ‘2004-02-02’
    return


    It throws an error like this:

    <ino:message ino:returnvalue=“6301”>
    <ino:messagetext ino:code=“INOXQE6301”>Runtime type exception</ino:messagetext>

    Are date comparisions possible? If so, what is the syntax?

    Thanks.


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Date Comparisons?

    Posted Sat March 13, 2004 08:04 AM

    I found the answer myself by reading other posts.

    The where clause needed to be:

    where $x/a > xs:date(“2004-02-02”)


    #API-Management
    #Tamino
    #webMethods