Commons XML Schema model is a general purpose schema model that can be used when a Java object tree representation of an Xml schema is required. This short tutorial explains how the Commons XML Schema can be utilized.
The core commons XML Schema classes have no third party dependencies. However it depends on the XMLUnit and JUnit libraries for unit testing, and the maven build uses the StAX API libraries to access the javax.xml.namespace.QName class (which is not part of the JDK). Also the serialization mechanism uses the DOM serialization mechanism, hence the JDK has to be 1.4 and upwards.
The structure of the commonsl, which makes the commons XmlSchema sufficient for almost all needs of schema handling.
The reader for the XML Schema read method has a parameter to pass in a validating event handler. The validating event handler can be used to pass in the custom validating procedures. However, this particular handler has no effect on the reading of the schema yet, and it is not a feature in this release of Commons XML Schema.), null);
Note that null is passed for the validating handler since it has no effect yet.);