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.  xquery and interactive interface`

    Posted Thu August 04, 2005 07:48 PM

    Hi all,
    Does anyone know why xquery (in this case an update) returnes 0 results (running in interactive interface), while running the same query at a different time returnes the number of docs affected?

    Could it be a configuration issue with transaction time?

    Thanks,

    -J


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: xquery and interactive interface`

    Posted Fri August 05, 2005 12:40 AM

    It was not an issue with any configuration, rather adding the attribute of the element in the query causes the query not to work.

    Is there anyway to get the attributes of an element (ONLY) as the result. Eventually I will need to add this value to my query’s where clause.\

    Thanks for any hint.

    -J


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: xquery and interactive interface`

    Posted Fri August 05, 2005 10:41 PM

    Does this help?

    for $i in input()/document
    where $i/node/@attr = ‘value’
    return {string($i/node/@attr)}

    or

    return {$i/node/@attr}

    The first return returns the value of the attribute as the content of the element; the second returns “attr” as an attribute of :

    If this doesn’t answer your question, please include samples - what you have attempted as a query so far and what your data looks like.


    #webMethods
    #Tamino
    #API-Management