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.  getParent()

    Posted 07/12/03 05:20 PM

    If I want to get a specific Element within my XML document I use XQuery and JDOM Object:

    queryString = "for $b in input()/path & condition "
    queryString += “return $b”;

    For this queryString I get an Element.
    But how do I get the Parent of this Element.

    Is there anything like this :
    queryString += “return $b.getParent()”;

    thanks
    Aykut


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: getParent()

    Posted 07/14/03 12:15 PM

    Hi Aykut,

    use the parent axis abbreviated …
    i.e. return $b/…

    Regards,
    Juliane.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: getParent()

    Posted 07/15/03 10:17 AM

    If not you can also use the
    return parent::$b
    I hope this help


    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: getParent()

    Posted 07/16/03 05:27 PM

    I have decided myself for
    “return $b/…”

    Thank you !!!
    Aykut


    #API-Management
    #Tamino
    #webMethods