catch(IOException e){</BUG>
Logger.getLogger(PlatformUtil.class.getName()).log(Level.WARNING, "Unable to load XML file [" + xmlfile.toString() + "] of type ["+type+"]", e);
return false;
}
}
<BUG>public static boolean xmlIsValid(Document doc, String type) throws SAXException{
</BUG>
DOMSource dms = new DOMSource(doc);
<BUG>return xmlIsValid(dms, type);
</BUG>
}

out.close();
}
}
return true;
}
public static boolean xmlIsValid(DOMSource xmlfile, Class clazz, String type) {
if(!type.equals(hashsetXSD) && !type.equals(keywordXSD) && !type.equals(searchEngineXSD) && !type.equals(pipelineXSD)){
return false;
