protected static IResource[] searchSuites(IResource[] scopeResources) {
ISearchQuery query= new FileSearchQuery("<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\" >",
false /*regexp*/ ,
false /*casesensitive*/,
FileTextSearchScope.newSearchScope(scopeResources, new String[] {"*.xml"}, false));
query.run(null);
FileSearchResult result= (FileSearchResult) query.getSearchResult();
Object[] elements= result.getElements();
IResource[] resources= new IResource[elements.length];
for(int i= 0; i < elements.length; i++) {
resources[i]= (IResource) elements[i];