Hi,
how delete a nonxml document in a nonxml doctype with xquery ???
Thanks !!!
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]/…