As you can modify the content of the instance editor, different instances can be tested and validation error messages analysed.The example's main() function creates the standard instance of QApplication.This tells XMLBlueprint to validate the XML Document against XML Schema "book.xsd".In this case, the XML Schema is to be found in the same folder as the XML Document.The user can select the valid or invalid instance document, change it and validate it again.The UI for this example was created using Qt Designer: The UI consists of three parts, at the top the XML schema selection and the schema viewer, below the XML instance selection and the instance editor and at the bottom the validation status label next to the validation button.
Schema Factory; public class Unmarshal Demo The validation performed during the unmarshal raised three events.An XSD Schema is used to validate an XML document, it describes what elements, attributes, types are allowed and in which order. URL; public class Validate Xml Against Xsd package com.jdom; import org.jdom2. In the following tutorial we explain how you can validate an XML document against an XSD Schema using JDOM. It is also possible to specify an absolute location, but beware that you must use URL syntax, not Path syntax.In this page you can check the validity of your XML Schema (XSD) file. The library used in this page is jaxp, Java API for XML Processing, version 1.4, from Java(TM) SE Runtime Environment (build 1.7.0_06-b24).