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.  How delete a nonxml document

    Posted 12/16/04 12:10 AM

    Hi,


    how delete a nonxml document in a nonxml doctype with xquery ???



    Thanks !!!


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: How delete a nonxml document

    Posted 12/29/04 03:14 PM

    Hi,

    you have to reference the document-node in the update delete statemnet. XQuery is more restrictive in this respect, in contrast to the former XQuery (a.k.a. X-Query) implementation. In the examples below this is achieved by the ‘…’ operator.
    Alternatively you can use the tf:root() Function.

    To delete all documents within a collection use:
    update delete input()

    To delete a specific (non- or XML) doctype use:
    update delete input()/myDocument/…

    To delete a specific document with ino:id 2 use:
    declare namespace tf=“http://namespaces.softwareag.com/tamino/TaminoFunction
    update delete input()/myDocument[tf:getInoId(.) = 2]/…


    #Tamino
    #API-Management
    #webMethods