Hi,
XML documents are stored in Tamino in reference of their INO-IDs; and not with the filenames. So to query/delete or updation would use the same to refer to a perticular document within a list of available values:-
public String getDeleteXMLExpression(String collection, int ino_id)
{
String s = “”;
s += “declare namespace ino = ‘http://namespaces.softwareag.com/tamino/response2’”;
s += “declare namespace tf= ‘http://namespaces.softwareag.com/tamino/TaminoFunction’”;
s += “update for $q in input()/” + collection + " where tf:getInoId($q) = " + ino_id;
s += “do (”;
s += “delete $q/…”; /* the “/…” is appended in order to access the root element. /
s += “)”;
return s;
}
However, if you intend to delete/access an nonXMLObject, you can do so by specifying the name of the file (Docname), the following source sample demonstrates the same with the default collection:-
public String getDeleteNonXMLExpression(String docname)
{
String s = “”;
s += “declare namespace ino = ‘http://namespaces.softwareag.com/tamino/response2’”;
s += “declare namespace tf= ‘http://namespaces.softwareag.com/tamino/TaminoFunction’”;
s += "update for $q in input()/ino:etc where tf:getDocname($q) = docname;
s += “do (”;
s += “delete $q/…”; / the “/…” is appended in order to access the root element. */
s += “)”;
return s;
}
I hope this will resolve your problem if not get back,
thanks,
Sonal.
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods