Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 597 → Rev 598

/sun/xmleditor/trunk/src/parser/Validator.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.43 $
* @version $Revision: 1.44 $
*
* Last modification: $Date: 2003/07/17 17:25:24 $
* $Id: Validator.java,v 1.43 2003/07/17 17:25:24 smcsporr Exp $
* Last modification: $Date: 2003/07/18 13:04:17 $
* $Id: Validator.java,v 1.44 2003/07/18 13:04:17 smcsporr Exp $
*/
 
package src.parser;
50,7 → 50,7
*
* @author S. McSporran
*
* @version $Revision: 1.43 $ Last modification: $Date: 2003/07/17 17:25:24 $
* @version $Revision: 1.44 $ Last modification: $Date: 2003/07/18 13:04:17 $
*/
public class Validator {
 
366,36 → 366,6
try {
try {
if (activeParser.getFeature("http://xml.org/sax/features/validation")) {
log(LogInterface.TYPE_INFO, "Validation available !");
}
if (activeParser.getFeature("http://apache.org/xml/features/validation/schema")) {
log(LogInterface.TYPE_INFO, "Schema validation available !");
}
if (activeParser.getFeature("http://apache.org/xml/features/validation/dynamic")) {
log(LogInterface.TYPE_INFO, "Dynamic validation available !");
}
}
catch (SAXNotRecognizedException snre) {
log(LogInterface.TYPE_ERROR, "Not recognized");
}
catch (SAXNotSupportedException snre) {
log(LogInterface.TYPE_ERROR, "Not supported");
}
log(LogInterface.TYPE_WARNING, docFile.toString());
/* Set transformation source to the DOM object. */
DOMSource dSource = new DOMSource(doc);
417,11 → 387,6
/* Get the buffer associated with the StringWriter outputWr. */
StringBuffer buffer = outputWr.getBuffer();
//Serializer serializer = SerializerFactory.getSerializer(
//OutputPropertiesFactory.getDefaultMethodProperties("xml"));
//serializer.setWriter(outputWr);
log(LogInterface.TYPE_ERROR, buffer.toString());
/* Set valid status in the ValidationErrorHandler to true. */