As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String xpath = "/app:company_home/*[@cm:name="folderX"]/*[@cm:name="folderY"]"
String path = "/app:company_home/cm:"+ISO9075.encode("folderX")+"/cm:"+ISO9075.encode("folderY")";
protected ResultSet NodeSearch(String nodeName){ ResultSet result = null; try{ RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); //the following query search for a node of type folder. If you have another type, you mus change the query. Query query = new Query(Constants.QUERY_LANG_LUCENE, "TYPE:\"cm:folder\" AND @cm\\:name:\""+normilizeNodeName(nodeName)+"\""); QueryResult queryResult = repositoryService.query(STORE, query, false); result = queryResult.getResultSet(); ResultSetRow[] rows = result.getRows(); rows[0].getColumns(); } catch(Exception e){ System.out.println("O node with name '"+nodeName+"' dont exist."); e.printStackTrace(); result = null; } return result; }