Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
How can I return the query result without the “ino:id” attribute added by the Tamino
Use XQuery and not X-Query.e.g.TXMLObjectAccessor accessor = connection.newXMLObjectAccessor( TAccessLocation.newInstance(COLLECTION), TDOMObjectModel.getInstance() );TXQuery xquery = new TXQuery(“for $q in input()/Account return $q”);TResponse response = accessor.xquery(xquery);Vikram Shinde
thanks. But I am using x-query, which is xpath query.Do you know anything about that?
Yes this is possible with TQuery as well.In Tamino version 421 (API version 4.2.1.4) this feature is available. You can set a preference through which ino:id attribute defination can be ignored.For Example –//Set preference that you don’t want ino:id attributes in TXMLObjectTPreference preference = TPreference.getInstance();preference.setDisableINO(true);TQuery query = new TQuery(“/Account”);TResponse response = accessor.query(query);TXMLObjectIterator iterator = response.getXMLObjectIterator();while (iterator.hasNext()){ TXMLObject object = iterator.next(); Element element = (Element)object.getElement(); //Note that this element won’t contain any ino:id attribute}Vikram Shinde