package com.tcs.wenrgise.util.common;

import java.util.ArrayList;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;

public class XMLValidationHandler extends DefaultHandler {
  private ArrayList results = new ArrayList();
  
  public ArrayList getResults() {
    return this.results;
  }
  
  public void warning(SAXParseException e) throws SAXException {
    this.results.add(e.toString());
  }
  
  public void fatalError(SAXParseException e) throws SAXException {
    this.results.add(e.toString());
  }
  
  public void error(SAXParseException e) throws SAXException {
    this.results.add(e.toString());
  }
}
