avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject XSchema Java Interface standards?
Date Wed, 24 Oct 2001 11:24:06 GMT

I was wondering if there is any standard for Schema (or even DTD) validators 
around in XML land that multiple vendors implement. 

Essentially I am looking for something like

ValidatorFactory factory = new XSchemaValidatorFactory();

InputSource schema = new InputSource( "myschema.xsd" );
InputSource data1 = new InputSource( "mydata1.xsd" );
InputSource data2 = new InputSource( "mydata2.xsd" );
InputSource data3 = new InputSource( "mydata3.xsd" );

Validator validator = factory.build( schema );
validator.setErrorHandler( myErrorHandler );

validator.validate( data1 );
validator.validate( data2 );
validator.validate( data3 );

Is there any standard like this ? If not is there any parser that implements 
something like this. If not is there any parser that lets you get at the guts 
and implement a layer like this?



First, we shape our tools, thereafter, they shape us.

To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

View raw message