Class CheckingSchemaBuilder

  • All Implemented Interfaces:

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


    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.