Hello,
thank you for the note. The problem is that didn?t adapt our X-Application Java API examples to our new query concept. They are still based on the query classes. These classes do not provide the hole query capability of Tamino XQL expression. It is difficult to extend these classes for new features coming up with new Tamino versions. Therefore, we decided to spend no more time for further development on the query classes. Instead of, we added a query method to the workspace which accepts an XQL expression as string.
For getting only the ?Price? element you can use
<BR>BusinessDocumentWorkspace ws = new BusinessDocumentWorkspace(store);<BR>Cursor docCursor = ws.query("buyPrices", "Property", "/Property[@Category='Buy']/Price", 15);<BR>int counter = 0;<BR>while (docCursor.hasNext()) {<BR> BusinessDocument doc = (BusinessDocument)docCursor.next();<BR> counter++;<BR> System.out.println(?? + counter + ?: Price = " + doc.selectElement(".").getText());<BR>}<BR>docCursor.close();<BR>
Does this query handling help you or is it necessary to provide a object oriented support for query expressions?
However, you are right: Setting a “selected element” has no effect. The query builder ignores this attribute of the query container. Therefore I will mark the topic with the “bug” icon.
Bye,
Christian.
[This message was edited by Christian Freytag on 07 Aug 2002 at 06:46.]
#Tamino#API-Management#webMethods