cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH and Java Foundation API

toze
Champ in-the-making
Champ in-the-making
HI.
Where i can see some samples using xpath queries in java foundation api?
Can anyone give some links so i can see that?
Thanks in advanced
1 REPLY 1

toze
Champ in-the-making
Champ in-the-making
SearchParameters sp = new SearchParameters();

StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE,"SpacesStore");
sp.addStore(storeRef);
sp.setLanguage(SearchService.LANGUAGE_XPATH);
sp.setQuery(query);

ResultSet results = serviceRegistry.getSearchService().query(sp);

it's this the way to get that to work?