The answer is- you don’t have to use /BKPElementMatrixList/@7
Inthe Tamino Active API are three ways of deleting a document from the database
1.delete a document with the same doctype and ino:id as the supplied element
2.delete by Query (/BKPElementMatrixList)[@ino:id=“7”]
3.delete by URI /BKPElementMatrixList/@7
See below for the document
form 3) is present because is you do already have a URL
for a document it is a bit tricky to decompose and turn it into form 2) - expecially if you don’t know if the ino:id or the docname is used and whether the URI is absolute or relative, or even if it points to a different collection or database from the current collection.
Also - which is very convenient in some applications - 3) works even if the URL points to another Tamino or Web Server that understands HTTP DELETE
In the Active X interface it is as follows
InoDelete
LPDISPATCH InoDelete(LPDISPATCH lpDOMElement)
Deletes a DOM element from the Tamino database.
Parameter Type:
IXMLDOMElement
Return Type:
IXMLDOMDocument
--------------------------------------------------------------------------------
DeleteByQuery
LPDISPATCH DeleteByQuery(LPCTSTR lpszQuery, LPCTSTR lpszCollection, LPCTSTR lpszDocType)
Delete by query with collection and doctype names in the query string.
The Tamino object will attempt to delete all documents that are described by the query. If the collection is set be sure that the baseURL does not contain the collection name. Otherwise you receive an error. Note: From Tamino Version 2.1 onwards it’s necessary to add the collection to the baseURL.
Parameters:
lpszQuery - query expression to select records to delete
lpszQueryCollection - collection name
lpszQueryDocType - doctype name
Return Type:
IXMLDOMDocument
DeleteDocument
LPDISPATCH DeleteDocument(LPCTSTR lpszReURL)
Deletes the document specified by the lpszReURL parameter.
Parameter:
lpszReURL - NULL or the relative URL added to the database URL, if it does not begin with “http://”
Return Type:
IXMLDOMDocument
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods