They provide a means for defining the structure, content and semantics of XML documents. XML Schema 1.0 was approved as a W3C Recommendation on and a second edition incorporating many errata was published on 28 October 2004; see reference list for pointers.The XML Schema Working Group, part of the XML Activity, is responsible for the W3C's work on this topic -- for details see the Working Group's charter.
Sim dating games for adults - Validating xml using schema
So, that was one of the easiest ways to validate XML file.
The XML schema support in the XML schema editor is based on the W3C XML Schema Recommendation Specification.
Hence let’s wrap this snippet in the try-catch block.
The above code reads XML and XSD paths and then validates the XML file with XSD file.
You can set up a project's properties so that different types of project resources are automatically validated when you save them (this is set for all resources by default).