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

XQuery - insert at a certain position

  • 1.  XQuery - insert at a certain position

    Posted Tue June 10, 2003 03:00 PM







    I would like to add
    after Element c.
    How can I do that in XQuery ?

    [This message was edited by Aykut on 10 Jun 2003 at 13:53.]


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


  • 2.  RE: XQuery - insert at a certain position

    Posted Tue June 10, 2003 04:58 PM

    The XQuery would be:-

      
    update for $x in input()/a
    let $d := <d name="d"/>
    do (
    insert $d following $x/c
    )



    Hope that helps.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


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


  • 3.  RE: XQuery - insert at a certain position

    Posted Wed June 11, 2003 01:38 PM

    And an adminstrative note:

    There is a forum dedicated to W3C XQuery. Follow this link.
    You might want to post such questions there.

    Best regards, Christian.


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


  • 4.  RE: XQuery - insert at a certain position

    Posted Wed June 11, 2003 11:46 PM