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
Expand all | Collapse all

What is the syntax for a wildcard query

  • 1.  What is the syntax for a wildcard query

    Posted Fri November 01, 2002 01:26 AM

    If I wanted to do a wildcard query on the following collection and element. What would the syntax be.

    /Document[ScientificData/CABTitle=‘test*’ and DocID=‘18*’]

    This was my initial thought, but it returns nothing.

    Thank you,

    Andy


    #API-Management
    #webMethods
    #webMethods-Tamino-XML-Server-APIs


  • 2.  RE: What is the syntax for a wildcard query

    Posted Fri November 01, 2002 05:50 AM

    Hi Andy,

    Try

    /Document[ScientificData/CABTitle~=‘test*’ and DocID~=‘18*’]

    To use wildcards, you have to use the “~=” operator.

    Note that the following query is equivalent in functionality, and may be more efficient:

    /Document[ScientificData/CABTitle~=‘test*’][DocID~=‘18*’]

    Regards,
    Puny Sen


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management