Class CheckingSchemaBuilder

  • All Implemented Interfaces:
    SchemaBuilder

    public class CheckingSchemaBuilder
    extends SchemaBuilderHost
    Wraps a SchemaBuilder and does all the semantic checks required by the RELAX NG spec.

    Usage

    Whereas you normally write it as follows:

     YourParsedPattern r = (YourParsedPattern)parseable.parse(sb);
     
    write this as follows:
     YourParsedPattern r = (YourParsedPattern)parseable.parse(new CheckingSchemaBuilder(sb,eh));
     

    The checking is done by using the rngom.binary package, so if you are using that package for parsing schemas, then there's no need to use this.