2002/ws/desc/tools ValidateSchema.java,1.1,1.2

Update of /sources/public/2002/ws/desc/tools
In directory homer:/tmp/cvs-serv8837

Modified Files:
	ValidateSchema.java 
Log Message:
Now that I generalized the use of errorh, the pruning of org.xml.sax.SAXParseException: doesn't make sense anymore


Index: ValidateSchema.java
===================================================================
RCS file: /sources/public/2002/ws/desc/tools/ValidateSchema.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ValidateSchema.java	21 Oct 2005 12:54:41 -0000	1.1
--- ValidateSchema.java	21 Oct 2005 14:00:49 -0000	1.2
***************
*** 18,26 ****
  	    // Setting all the features so that we validate fully
  	    parser.setFeature("http://xml.org/sax/features/validation", true);
! 	    parser.setFeature("http://apache.org/xml/features/validation/schema",true);
! 	    parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",true);    
  	    // Location of my Schema 1.0 schema
  	    parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",
! 			       "http://www.w3.org/2001/XMLSchema file:../tools/schema10.xsd");
  
  	} catch (Exception e) {
--- 18,27 ----
  	    // Setting all the features so that we validate fully
  	    parser.setFeature("http://xml.org/sax/features/validation", true);
! 	    parser.setFeature("http://apache.org/xml/features/validation/schema", true);
! 	    parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
! 			      true);    
  	    // Location of my Schema 1.0 schema
  	    parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation",
! 			       "http://www.w3.org/2001/XMLSchema file:schema10.xsd");
  
  	} catch (Exception e) {
***************
*** 37,44 ****
  
      private void errorh(String type, Exception e) {
! 	String msg = new String(e.toString());
! 	String ridof = new String("org.xml.sax.SAXParseException: ");
! 	msg = msg.substring(ridof.length());
!         System.err.println("[" + type + "] " + msg);
  	exitcode = 1;
      }
--- 38,42 ----
  
      private void errorh(String type, Exception e) {
!         System.err.println("[" + type + "] " + e);
  	exitcode = 1;
      }

Received on Friday, 21 October 2005 14:00:56 UTC