Hi Dariusz,
the problem is that the value is stored within a child node:
public static final void main(String arg[]) throws Exception {
TaminoClient tc = new TaminoClient("http://localhost/tamino/mydb/col");
tc.setPageSize(0);
tc.startSession();
try {
TaminoResult tr = tc.query("count(/doc[id_client='12345'])");
Element el = tr.getElement();
System.out.println("GET_TAG_NAME=" + el.getTagName());
Node elChild = el.getFirstChild();
System.out.println("GET_TAG_NAME=" + elChild.getNodeName());
System.out.println("GETDATA=" + elChild.getNodeValue());
tc.endSession();
} catch (com.softwareag.tamino.api.dom.TaminoError Error) {
System.err.println("Tamino Error Code: " + Error.responseCode + "\n" +
"Tamino Error Text: " + Error.errorText);
}
}
Cheers,
Trevor.
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods