Hello,
I have problem which I think is weird!
The getId() function returns an empty string (not null either). I applied XQuery to retrieve a full document and tried to getId() from the result.
Is this a very common problem? Are there any limitations like this when the results are obtained using XQuery?
Thanks in anticipation.
Best regards,
Gopal.
Hi Gopal,
getId() return ino:id. And Tamino doen’t return ino:id if you are using XQuery. It returns ino:id in the response only if you are using X-Query.
In short if you use accessor.xquery() method to retrieve document from tamino you won’t get ino:id and thats why you get empty string when you call getId().
You will be able to get ino:id if you use accessor.query() method to retrieve document.
Hope this clarify your doubt.
Best Regards,
Vikram
Vikram Shinde
Hi Vikram,
Thanks!
- Gopal.
I used this to get ino:id again
[color=“green”]
declare namespace
tf = ‘http://namespaces.softwareag.com/tamino/TaminoFunction’
for $q in input()/SomeSchema
return
{$q}
[/color]
Do you know some easier way to do it?
Yours
Joe
Hi i’ve the some problem with ino:id and ino:docname. I think they maybe related. Is this applicable also to ino:docname?