Cookie Policy
We may store information about you using cookies (files which are sent by us to your computer or other access device) which
we can access when you visit our site in future. We do this to enhance user experience. If you want to delete any cookies that
are already on your computer, please refer to the instructions for your file management software to locate the file or directory
that stores cookies. Our cookies will have the file names symfony, JSESSIONID, IS and ISCOOKIE. Information on deleting or controlling
cookies is available at www.AboutCookies.org. Please note that by
deleting our cookies or disabling future cookies you may not be able to access certain areas or features of our site.

Validation - Java working with XML overview (tutorial)

Validation of XML is done against the schema. The schema is the specification for how our XML may look like. Java merely provides a mechanism of validation the schema rules against a given XML.

The schema is very relaxed in the way it can be organised. You may just do all the configurations inline, or extract some of them using ref (references), or event make your own hierarchy of complex types (named types) to make your schema tidy.

Here I will give you three versions of the schema that produce exactly the same result to give you a hint to how you can do it.

"The whole history of science has been the gradual realization that events do not happen in an arbitrary manner, but that they reflect a certain underlying order, which may or may not be divinely inspired." - Stephen Hawking