XQuery - update query on ino:docname

Hello!

I want to modify the ino:docname attribute of an xml resource.
I was thinking using the updating capabilities of XQuery. Unfortunaly it seems the ino:id and ino:docname attributes are not returned by XQuery (in X-Query is possible). There is the tf:getDocname() function but it only returns the value.

If any one knows how to write such a query…

Thanks!

Hi,

Unfortunately Tamino does not provide any possibility to modify the docname via an XQuery expression. But you can do that via a process update. For example assuming that you want to change the name of the document with ino:id = 1. By loading the document content with the following wrapping you rename the document to “a.xml”.

<?xml version="1.0" encoding="UTF-8"?>

<ino:request xmlns:ino=“http://namespaces.softwareag.com/tamino/response2”>
<ino:object ino:docname=“a.xml” ino:id=“1”>

</ino:object>
</ino:request>

Best Regards,

Thorsten

Thank you!

I was hopping for an XQuery way but this is good too(makes an overhead in communication because I send again the document, but is not an action to perform often)