* @param inputStream the inputStream to validate
* @return True if the file is conformant, false otherwise.
*/
protected boolean validateXML(ControllerValidationInfo valInfo, InputStream inputStream)
{
IXMLValidator xmlValidator = AbstractXMLConformanceFactory.getInstance().getXMLValidator();
xmlValidator.setURIResolver(uriResolver);
xmlValidator.setFile(valInfo.getFileURI());
if (xmlValidator instanceof DefaultXMLValidator)
{
((DefaultXMLValidator)xmlValidator).setInputStream(inputStream);
XMLGrammarPool grammarPool = (XMLGrammarPool)valInfo.getAttribute(Constants.XML_CACHE_ATTRIBUTE);
if(grammarPool != null)
((DefaultXMLValidator)xmlValidator).setGrammarPool(grammarPool);
}
//xmlValidator.setValidationInfo(valInfo);
xmlValidator.run();
// if there are no xml conformance problems go on to check the wsdl stuff
if (xmlValidator.hasErrors())
{
// temp handling of XML errors until validator is updated.
List errors = xmlValidator.getErrors();
Iterator errorsIter = errors.iterator();
while (errorsIter.hasNext())
{
IValidationMessage valMes = (IValidationMessage)errorsIter.next();