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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  What's the difference between these XPath queries?

    Posted 05/25/01 01:16 PM

    Query A:
    /ie[(./links/linkentry/@refid=‘0001000100000112’]) and
    (./links/linkentry[@refid=‘0001000100000113’])]/@id

    Query B:
    /ie[(./links/linkentry/@refid=‘0001000100000112’) and
    (./links/linkentry/@refid=‘0001000100000113’)]/@id

    First one delivers no result, while the second one does what was expected. What part of XPath did I not understand here?


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: What's the difference between these XPath queries?

    Posted 05/25/01 01:18 PM

    The first query should read

    /ie[(./links/linkentry[@refid=‘0001000100000112’]) and
    (./links/linkentry[@refid=‘0001000100000113’])]/@id

    sorry for the typo


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: What's the difference between these XPath queries?

    Posted 05/28/01 12:58 PM

    That surprises me too,

    Although a query like:

    /ie[(links/linkentry[@refid=‘0001000100000112’]) and
    (links/linkentry[@refid=‘0001000100000113’])]/@id

    , another like

    /ie[(./links/linkentry[@refid=‘0001000100000112’]/@refid) and
    (./links/linkentry[@refid=‘0001000100000113’]/@refid)]/@id

    and another like

    /ie[(…/ie/links/linkentry[@refid=‘0001000100000112’]) and
    (…/ie/links/linkentry[@refid=‘0001000100000113’])]/@id

    work fine and give what is expected!

    I am looking forward for an answer to this as well…


    #Tamino
    #API-Management
    #webMethods